Skip to content

Commit b31f1e4

Browse files
authored
[frontend] fix in regards of filter button (#14532)
1 parent ae02e11 commit b31f1e4

File tree

1 file changed

+12
-17
lines changed

1 file changed

+12
-17
lines changed

opencti-platform/opencti-front/src/components/filters/FilterValues.tsx

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import { Filter } from '../../utils/filters/filtersHelpers-types';
1515
import useSchema from '../../utils/hooks/useSchema';
1616
import FilterValuesForDynamicSubKey from './FilterValuesForDynamicSubKey';
1717
import { useTheme } from '@mui/material/styles';
18+
import { Stack } from '@mui/material';
1819

1920
interface FilterValuesProps {
2021
label: string | React.JSX.Element;
@@ -204,7 +205,7 @@ const FilterValues: FunctionComponent<FilterValuesProps> = ({
204205
const isWarning = isRegardingOfFilterWarning(currentFilter, scos.map((n) => n.id), filtersRepresentativesMap);
205206

206207
return (
207-
<>
208+
<Stack direction="row">
208209
{isWarning && (
209210
<Tooltip title={
210211
t_i18n('', {
@@ -269,23 +270,17 @@ const FilterValues: FunctionComponent<FilterValuesProps> = ({
269270
>
270271
<Box
271272
sx={{
272-
padding: '0 4px',
273-
display: 'flex',
273+
px: 0.5,
274274
}}
275275
>
276-
<Chip
277-
label={(
278-
<FilterValues
279-
label={keyLabel}
280-
tooltip={false}
281-
parentFilter={currentFilter}
282-
currentFilter={val}
283-
filtersRepresentativesMap={filtersRepresentativesMap}
284-
redirection
285-
noLabelDisplay={true}
286-
/>
287-
)}
288-
color={chipColor}
276+
<FilterValues
277+
label={keyLabel}
278+
tooltip={false}
279+
parentFilter={currentFilter}
280+
currentFilter={val}
281+
filtersRepresentativesMap={filtersRepresentativesMap}
282+
redirection
283+
noLabelDisplay={true}
289284
/>
290285
</Box>
291286
</Tooltip>
@@ -294,7 +289,7 @@ const FilterValues: FunctionComponent<FilterValuesProps> = ({
294289
})
295290
}
296291
</Box>
297-
</>
292+
</Stack>
298293
);
299294
}
300295
if (noLabelDisplay) {

0 commit comments

Comments
 (0)