From 6c56b189b7d830f0a6ee4d660c0c76b2d0c32913 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Sun, 29 Jan 2023 13:40:26 +0100 Subject: [PATCH] Styling tweak to the tagRenderingQuestion --- UI/Popup/TagRenderingQuestion.ts | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/UI/Popup/TagRenderingQuestion.ts b/UI/Popup/TagRenderingQuestion.ts index 172086b17..e02a49739 100644 --- a/UI/Popup/TagRenderingQuestion.ts +++ b/UI/Popup/TagRenderingQuestion.ts @@ -140,21 +140,19 @@ export default class TagRenderingQuestion extends Combine { super([ question, inputElement, - new Combine([ - new VariableUiElement( - feedback.map( - (t) => - t - ?.SetStyle("padding-left: 0.75rem; padding-right: 0.75rem") - ?.SetClass("alert flex") ?? bottomTags - ) - ), - new Combine([new Combine([options.cancelButton]), saveButton]).SetClass( - "flex justify-end flex-wrap-reverse" - ), - ]).SetClass("flex mt-2 justify-between"), + new VariableUiElement( + feedback.map( + (t) => + t + ?.SetStyle("padding-left: 0.75rem; padding-right: 0.75rem") + ?.SetClass("alert flex") ?? bottomTags + ) + ), + new Combine([options.cancelButton, saveButton]).SetClass( + "flex justify-end flex-wrap-reverse" + ), new Toggle( - Translations.t.general.testing.SetClass("alert"), + Translations.t.general.testing.SetClass("block alert"), undefined, state?.featureSwitchIsTesting ),