Styling tweak to the tagRenderingQuestion

This commit is contained in:
Pieter Vander Vennet 2023-01-29 13:40:26 +01:00
parent 19b381e8b0
commit 6c56b189b7

View file

@ -140,21 +140,19 @@ export default class TagRenderingQuestion extends Combine {
super([ super([
question, question,
inputElement, inputElement,
new Combine([ new VariableUiElement(
new VariableUiElement( feedback.map(
feedback.map( (t) =>
(t) => t
t ?.SetStyle("padding-left: 0.75rem; padding-right: 0.75rem")
?.SetStyle("padding-left: 0.75rem; padding-right: 0.75rem") ?.SetClass("alert flex") ?? bottomTags
?.SetClass("alert flex") ?? bottomTags )
) ),
), new Combine([options.cancelButton, saveButton]).SetClass(
new Combine([new Combine([options.cancelButton]), saveButton]).SetClass( "flex justify-end flex-wrap-reverse"
"flex justify-end flex-wrap-reverse" ),
),
]).SetClass("flex mt-2 justify-between"),
new Toggle( new Toggle(
Translations.t.general.testing.SetClass("alert"), Translations.t.general.testing.SetClass("block alert"),
undefined, undefined,
state?.featureSwitchIsTesting state?.featureSwitchIsTesting
), ),