diff --git a/UI/Input/RadioButton.ts b/UI/Input/RadioButton.ts index b04ce01..0723e1b 100644 --- a/UI/Input/RadioButton.ts +++ b/UI/Input/RadioButton.ts @@ -74,11 +74,11 @@ export class RadioButton extends InputElement { for (let i = 0; i < this._elements.length; i++){ const el = this._elements[i]; const htmlElement = - `` + - `` + - `
`; + ``; body += htmlElement; - } return `
${body}
`; diff --git a/UI/Popup/TagRenderingQuestion.ts b/UI/Popup/TagRenderingQuestion.ts index 3470137..104ed4b 100644 --- a/UI/Popup/TagRenderingQuestion.ts +++ b/UI/Popup/TagRenderingQuestion.ts @@ -102,9 +102,6 @@ export default class TagRenderingQuestion extends UIElement { return ff; } - mappings = Utils.NoNull([...mappings, ff]); - mappings.forEach(el => el.SetClass("question-option-with-border")) - if (this._configuration.multiAnswer) { return this.GenerateMultiAnswer(mappings, ff) } else { diff --git a/css/tagrendering.css b/css/tagrendering.css index 00502e2..cd07ed5 100644 --- a/css/tagrendering.css +++ b/css/tagrendering.css @@ -94,13 +94,11 @@ .question-option-with-border { border: 2px solid lightgray; border-radius: 0.5em; - display: inline-block; + display: block; width: 100%; - margin: 0; - margin-left: -2em; + margin: 5px ​0; box-sizing: border-box; padding: 0.5em; - padding-left: 2em; } input:checked + label .question-option-with-border {