We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fab0cc commit cb80c2cCopy full SHA for cb80c2c
src/components/Question.tsx
@@ -269,9 +269,9 @@ class RenderedQuestion extends React.Component<QuestionProp> {
269
name.push(<span key={name.length - 1}>{name.pop()?.props.children[0]}</span>);
270
271
if (question.type === QuestionType.Section) {
272
- const styles = css`
+ let styles = css`
273
h1 {
274
- margin-bottom: 0;
+ margin-bottom: 0.5rem;
275
}
276
277
h3 {
@@ -290,6 +290,17 @@ class RenderedQuestion extends React.Component<QuestionProp> {
290
291
`;
292
293
+ if (question.data["align"] === "left") {
294
+ styles = css`
295
+ ${styles};
296
+
297
+ h1, h3 {
298
+ text-align: left;
299
+ padding: 0 0rem;
300
+ }
301
+ `;
302
+ };
303
304
const data = question.data["text"];
305
let text;
306
0 commit comments