Skip to content

Commit 6a8fe03

Browse files
fix: overlapping of the question natural key and question type icon (#1230)
1 parent 58a2c14 commit 6a8fe03

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

apps/frontend/src/components/template/TemplateQuestionEditor.tsx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export default function TemplateQuestionEditor(props: {
5959
? '&&'
6060
: '||';
6161
const dependencyJsx = dependencies.length ? (
62-
<div>
62+
<>
6363
<LockIcon sx={{ fontSize: '17px' }} />
6464
<ul data-cy="dependency-list">
6565
{dependencies.map((dependency, i) => {
@@ -99,7 +99,7 @@ export default function TemplateQuestionEditor(props: {
9999
);
100100
})}
101101
</ul>
102-
</div>
102+
</>
103103
) : null;
104104
const questionDefinition = getQuestionaryComponentDefinition(
105105
props.data.dataType
@@ -138,6 +138,7 @@ export default function TemplateQuestionEditor(props: {
138138
fontSize: '12px',
139139
fontWeight: 'bold',
140140
color: theme.palette.grey[800],
141+
wordBreak: 'break-word',
141142
}}
142143
data-cy="proposal-question-id"
143144
>
@@ -148,9 +149,9 @@ export default function TemplateQuestionEditor(props: {
148149
xs={2}
149150
sx={{
150151
color: theme.palette.grey[400],
151-
justifyItems: 'flex-end',
152-
justifyContent: 'flex-end',
153152
display: 'flex',
153+
justifyContent: 'flex-end',
154+
alignItems: 'center',
154155
}}
155156
>
156157
{getTemplateFieldIcon(props.data.dataType)}
@@ -159,7 +160,7 @@ export default function TemplateQuestionEditor(props: {
159160
<Grid
160161
item
161162
xs={10}
162-
sx={{ color: '#000', fontSize: '15px', padding: '6px 0' }}
163+
sx={{ color: '#000', fontSize: '13px', padding: '6px 0' }}
163164
>
164165
{questionDefinition.renderers
165166
? questionDefinition.renderers.questionRenderer(props.data)

0 commit comments

Comments
 (0)