File tree Expand file tree Collapse file tree 1 file changed +12
-17
lines changed
opencti-platform/opencti-front/src/components/filters Expand file tree Collapse file tree 1 file changed +12
-17
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import { Filter } from '../../utils/filters/filtersHelpers-types';
1515import useSchema from '../../utils/hooks/useSchema' ;
1616import FilterValuesForDynamicSubKey from './FilterValuesForDynamicSubKey' ;
1717import { useTheme } from '@mui/material/styles' ;
18+ import { Stack } from '@mui/material' ;
1819
1920interface 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 ) {
You can’t perform that action at this time.
0 commit comments