From 3b6fa7dc8d8b14ef6ee00b10055ba8377792d9b2 Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Mon, 31 Jan 2022 18:09:51 +0100 Subject: [PATCH] Styling tweak --- UI/Base/ScrollableFullScreen.ts | 2 +- UI/BigComponents/LeftControls.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/UI/Base/ScrollableFullScreen.ts b/UI/Base/ScrollableFullScreen.ts index 66cdd44559..22539a4d1e 100644 --- a/UI/Base/ScrollableFullScreen.ts +++ b/UI/Base/ScrollableFullScreen.ts @@ -101,7 +101,7 @@ export default class ScrollableFullScreen extends UIElement { Hash.hash.setData(undefined) }) - title.SetClass("block text-l sm:text-xl md:text-2xl w-full font-bold p-0 max-h-20vh overflow-y-auto") + title.SetClass("block text-l sm:text-xl md:text-2xl w-full font-bold p-0 max-h-20vh overflow-y-auto self-center") return new Combine([ new Combine([ new Combine([returnToTheMap, title]) diff --git a/UI/BigComponents/LeftControls.ts b/UI/BigComponents/LeftControls.ts index 37c9b7780a..389aa5597b 100644 --- a/UI/BigComponents/LeftControls.ts +++ b/UI/BigComponents/LeftControls.ts @@ -89,7 +89,7 @@ export default class LeftControls extends Combine { const toggledFilter = new Toggle( new ScrollableFullScreen( - () => Translations.t.general.layerSelection.title.Clone().SetClass("self-center"), + () => Translations.t.general.layerSelection.title.Clone(), () => new FilterView(state.filteredLayers, state.overlayToggles).SetClass( "block p-1"