Skip to content

Commit 1869f1e

Browse files
committed
Style fix
1 parent 10fe5c6 commit 1869f1e

File tree

2 files changed

+25
-8
lines changed

2 files changed

+25
-8
lines changed

src/chart/parameter/component/NodePropertyParameterSelect.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,12 +121,17 @@ const NodePropertyParameterSelectComponent = (props: ParameterSelectProps) => {
121121
handleParameters(newValue, newDisplay, setManual);
122122
};
123123
return (
124-
<div>
124+
<div className={'n-flex n-flex-row n-flex-wrap n-items-center'}>
125125
<Autocomplete
126126
id='autocomplete'
127127
multiple={multiSelector}
128128
options={extraRecords.map((r) => r?._fields?.[displayValueRowIndex] || '(no data)').sort()}
129-
style={{ maxWidth: 'calc(100% - 30px)', marginLeft: '15px', marginTop: '5px' }}
129+
style={{
130+
maxWidth: 'calc(100% - 30px)',
131+
minWidth: `calc(100% - ${setManual ? '70' : '30'}px)`,
132+
marginLeft: '15px',
133+
marginTop: '5px',
134+
}}
130135
inputValue={inputDisplayText || ''}
131136
onInputChange={(event, value) => {
132137
setInputDisplayText(value);
Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,27 @@
11
import React from 'react';
2-
import { Fab } from '@mui/material';
3-
import RefreshIcon from '@mui/icons-material/Refresh';
4-
2+
import { Tooltip } from '@mui/material';
3+
import { CheckBadgeIconOutline } from '@neo4j-ndl/react/icons';
4+
import { IconButton } from '@neo4j-ndl/react';
55
/**
66
* Returns a button to delete a property entry from the table inside the GraphChartEditModal.
77
*/
88
export const SelectionConfirmationButton = ({ onClick, key }) => {
99
return (
10+
<Tooltip title={'Confirm'} disableInteractive key={key}>
11+
<IconButton
12+
key={`btn${ key}`}
13+
className='logo-btn n-p-1'
14+
aria-label={'btb-confirmation'}
15+
size='large'
16+
onClick={onClick}
17+
clean
18+
>
19+
<CheckBadgeIconOutline className='header-icon' type='outline' />
20+
</IconButton>
21+
</Tooltip>
22+
/*
1023
<Fab
11-
key={key}
24+
1225
size='small'
1326
aria-label='remove'
1427
style={{
@@ -22,7 +35,6 @@ export const SelectionConfirmationButton = ({ onClick, key }) => {
2235
}}
2336
onClick={onClick}
2437
>
25-
<RefreshIcon key={`icon${key}`} />
26-
</Fab>
38+
*/
2739
);
2840
};

0 commit comments

Comments
 (0)