Skip to content

Commit

Permalink
Adds max height to dropdown.
Browse files Browse the repository at this point in the history
  • Loading branch information
natalyjazzviolin committed Jan 31, 2025
1 parent 7feec70 commit ce031b2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/Dropdown/Dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,13 @@ type DropdownSubContentProps = DropdownMenu.MenuSubContentProps &
MainDropdownProps &
ArrowProps;

console.log("Max height: ", )
const DropdownMenuContent = styled(GenericMenuPanel)`
min-width: ${({ theme }) => theme.click.genericMenu.item.size.minWidth};
flex-direction: column;
z-index: 1;
overflow-y: auto;
overflow-y: scroll;
max-height: calc((var(--radix-${({ $type }) => $type}-content-available-height) - 100px))
`;

const DropdownContent = ({
Expand Down

0 comments on commit ce031b2

Please sign in to comment.