Various styling and language tweaks

This commit is contained in:
Pieter Vander Vennet 2022-02-11 01:20:01 +01:00
parent 847c0911f9
commit 3d2b55f9f1
14 changed files with 30 additions and 29 deletions

View file

@ -254,9 +254,9 @@ class AutomatonGui {
LocalStorageSource.Get("automation-theme-id", "missing_streets").syncWith(themeSelect.GetValue())
const tilepath = ValidatedTextField.InputForType("url", {
placeholder: "Specifiy the path of the overview",
inputStyle: "width: 100%"
})
tilepath.SetClass("w-full")
LocalStorageSource.Get("automation-tile_path").syncWith(tilepath.GetValue(), true)

View file

@ -43,6 +43,7 @@ export default class MinimapImplementation extends BaseUIElement implements Mini
this._addLayerControl = options.addLayerControl ?? false
this._options = options
MinimapImplementation._nextId++
this.SetClass("relative")
}

View file

@ -56,10 +56,8 @@ export default class FullWelcomePaneWithTabs extends ScrollableFullScreen {
isShown: UIEventSource<boolean>):
{ header: string | BaseUIElement; content: BaseUIElement }[] {
let welcome: BaseUIElement = new ThemeIntroductionPanel(isShown);
const tabs: { header: string | BaseUIElement, content: BaseUIElement }[] = [
{header: `<img src='${state.layoutToUse.icon}'>`, content: welcome},
{header: `<img src='${state.layoutToUse.icon}'>`, content: new ThemeIntroductionPanel(isShown)},
]

View file

@ -51,7 +51,7 @@ export default class LeftControls extends Combine {
return new FeatureInfoBox(tagsSource, currentViewFL.layerDef, state, "currentview", guiState.currentViewControlIsOpened)
.SetClass("md:floating-element-width")
})
}))
})).SetStyle("width: 40rem").SetClass("block")
return new Toggle(