fix: dropdown max-height and padding bottom (#8167)

Fixes: #6105 

Also fixed side effect due to previous PR:

[Screencast from 2024-10-29
13-54-44.webm](https://github.com/user-attachments/assets/f15db853-ca1c-4be8-9362-610122c4d988)
This commit is contained in:
Harsh Singh
2024-10-29 15:30:35 +05:30
committed by GitHub
parent f79e904dd6
commit c0484aa9a2
2 changed files with 16 additions and 1 deletions

View File

@ -25,6 +25,8 @@ const StyledDropdownMenu = styled.div<{
flex-direction: column;
z-index: 30;
overflow-y: auto;
overflow-x: hidden;
width: ${({ width = 160 }) =>
typeof width === 'number' ? `${width}px` : width};
`;