1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

test: scrollable filter options and sticky search (#5623)

This commit is contained in:
Mateusz Kwasniewski 2023-12-13 09:23:20 +01:00 committed by GitHub
parent 2b7e127680
commit 11b477d872
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -5,6 +5,7 @@ export const StyledDropdown = styled('div')(({ theme }) => ({
display: 'flex', display: 'flex',
flexDirection: 'column', flexDirection: 'column',
gap: theme.spacing(1), gap: theme.spacing(1),
maxHeight: '70vh',
})); }));
export const StyledListItem = styled(ListItem)(({ theme }) => ({ export const StyledListItem = styled(ListItem)(({ theme }) => ({

View File

@ -137,7 +137,7 @@ export const FilterItem: FC<IFilterItemProps> = ({
), ),
}} }}
/> />
<List disablePadding> <List sx={{ overflowY: 'auto' }} disablePadding>
{options {options
?.filter((option) => ?.filter((option) =>
option.label option.label