From 5e0f867019cb56ca3eb29070de5c2e52546b2e42 Mon Sep 17 00:00:00 2001 From: Yoganandan Pandiyan Date: Sun, 19 Oct 2025 21:10:04 +0200 Subject: [PATCH] fix: overlapping of the question natural key and question type icon --- .../components/template/TemplateQuestionEditor.tsx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/apps/frontend/src/components/template/TemplateQuestionEditor.tsx b/apps/frontend/src/components/template/TemplateQuestionEditor.tsx index dd9bfd8b6a..6156b3a6a5 100644 --- a/apps/frontend/src/components/template/TemplateQuestionEditor.tsx +++ b/apps/frontend/src/components/template/TemplateQuestionEditor.tsx @@ -59,7 +59,7 @@ export default function TemplateQuestionEditor(props: { ? '&&' : '||'; const dependencyJsx = dependencies.length ? ( -
+ <>
    {dependencies.map((dependency, i) => { @@ -99,7 +99,7 @@ export default function TemplateQuestionEditor(props: { ); })}
-
+ ) : null; const questionDefinition = getQuestionaryComponentDefinition( props.data.dataType @@ -138,6 +138,7 @@ export default function TemplateQuestionEditor(props: { fontSize: '12px', fontWeight: 'bold', color: theme.palette.grey[800], + wordBreak: 'break-word', }} data-cy="proposal-question-id" > @@ -148,9 +149,9 @@ export default function TemplateQuestionEditor(props: { xs={2} sx={{ color: theme.palette.grey[400], - justifyItems: 'flex-end', - justifyContent: 'flex-end', display: 'flex', + justifyContent: 'flex-end', + alignItems: 'center', }} > {getTemplateFieldIcon(props.data.dataType)} @@ -159,7 +160,7 @@ export default function TemplateQuestionEditor(props: { {questionDefinition.renderers ? questionDefinition.renderers.questionRenderer(props.data)