Skip to content

Commit faa04e5

Browse files
committed
fix(ui): fix position of info button when removing multiple fields from list key
1 parent 464c02a commit faa04e5

File tree

1 file changed

+24
-18
lines changed
  • redisinsight/ui/src/pages/browser/modules/key-details/components/list-details/remove-list-elements

1 file changed

+24
-18
lines changed

redisinsight/ui/src/pages/browser/modules/key-details/components/list-details/remove-list-elements/RemoveListElements.tsx

Lines changed: 24 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -261,24 +261,30 @@ const RemoveListElements = (props: Props) => {
261261
/>
262262
</FormField>
263263
</FlexItem>
264-
<FlexItem grow style={{ width: '100%' }}>
265-
<FormField
266-
additionalText={!canRemoveMultiple ? InfoBoxPopover() : <></>}
267-
>
268-
<TextInput
269-
name={config.count.name}
270-
id={config.count.name}
271-
maxLength={200}
272-
placeholder={config.count.placeholder}
273-
value={count}
274-
data-testid="count-input"
275-
autoComplete="off"
276-
onChange={handleCountChange}
277-
ref={countInput}
278-
disabled={!canRemoveMultiple}
279-
/>
280-
</FormField>
281-
</FlexItem>
264+
<Row grow>
265+
<FlexItem grow>
266+
<FormField>
267+
<TextInput
268+
name={config.count.name}
269+
id={config.count.name}
270+
maxLength={200}
271+
placeholder={config.count.placeholder}
272+
value={count}
273+
data-testid="count-input"
274+
autoComplete="off"
275+
onChange={handleCountChange}
276+
ref={countInput}
277+
disabled={!canRemoveMultiple}
278+
/>
279+
</FormField>
280+
</FlexItem>
281+
282+
{!canRemoveMultiple ? (
283+
<FlexItem>{InfoBoxPopover()}</FlexItem>
284+
) : (
285+
<></>
286+
)}
287+
</Row>
282288
</Row>
283289
</FlexItem>
284290
</EntryContent>

0 commit comments

Comments
 (0)