Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import { useLocalizedCountries } from 'components/utils/localized-countries-hook
import { useSelector } from 'react-redux';
import { AppState } from '../../../../redux/reducer';
import { FilterType } from '../utils';
import { OverflowableText } from '@gridsuite/commons-ui';
import { OverflowableText, OverflowableChip } from '@gridsuite/commons-ui';
import { EQUIPMENT_TYPES } from '../../../utils/equipment-types';
import { GlobalFilter } from './global-filter-types';
import { getResultsGlobalFiltersChipStyle, resultsGlobalFilterStyles } from './global-filter-styles';
Expand Down Expand Up @@ -223,8 +223,7 @@ function GlobalFilterAutocomplete({
const key: string = `inputFieldChip_${element.label}`;
if (index < TAG_LIMIT_NUMBER) {
return (
<Chip
size="small"
<OverflowableChip
label={label}
{...getTagsProps({ index })}
key={key}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
fetchElementsInfos,
mergeSx,
TreeViewFinderNodeProps,
OverflowableChip

Check warning on line 32 in src/components/results/common/global-filter/global-filter-paper.tsx

View workflow job for this annotation

GitHub Actions / build / build

Insert `,`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
OverflowableChip
OverflowableChip,

} from '@gridsuite/commons-ui';
import { GlobalFilterContext } from './global-filter-context';

Expand Down Expand Up @@ -213,8 +214,7 @@
<List sx={mergeSx(resultsGlobalFilterStyles.list, { overflowY: 'auto' })}>
{selectedGlobalFilters.map((element: GlobalFilter) => (
<ListItem key={element.label} sx={{ height: '1.8em' }}>
<Chip
size="small"
<OverflowableChip
label={getOptionLabel(element, translate)}
sx={getResultsGlobalFiltersChipStyle(element.filterType)}
onDelete={() => {
Expand Down
Loading