Skip to content

Commit

Permalink
Fix long list output in Dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
natalyjazzviolin authored Feb 4, 2025
2 parents 4d7facb + a31b8a6 commit 9ea5194
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/Dropdown/Dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export const Dropdown = (props: DropdownMenu.DropdownMenuProps) => (
const DropdownMenuItem = styled(GenericMenuItem)`
position: relative;
display: flex;
min-height: 32px;
&[data-state="open"] {
${({ theme }) => `
font: ${theme.click.genericMenu.item.typography.label.hover};
Expand Down Expand Up @@ -93,6 +94,10 @@ const DropdownMenuContent = styled(GenericMenuPanel)`
min-width: ${({ theme }) => theme.click.genericMenu.item.size.minWidth};
flex-direction: column;
z-index: 1;
overflow-y: scroll;
max-height: calc(
(var(--radix-${({ $type }) => $type}-content-available-height) - 100px)
);
`;

const DropdownContent = ({
Expand Down

0 comments on commit 9ea5194

Please sign in to comment.