Skip to content

Commit b1deea4

Browse files
authored
fix(Dropdown): remove hack, use prop for collision padding (#571)
1 parent 0fa45fa commit b1deea4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/components/Dropdown/Dropdown.tsx

+1-3
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,6 @@ const DropdownMenuContent = styled(GenericMenuPanel)`
9595
flex-direction: column;
9696
z-index: 1;
9797
overflow-y: auto;
98-
max-height: calc(
99-
(var(--radix-${({ $type }) => $type}-content-available-height) - 100px)
100-
);
10198
`;
10299

103100
const DropdownContent = ({
@@ -115,6 +112,7 @@ const DropdownContent = ({
115112
as={ContentElement}
116113
sideOffset={4}
117114
loop
115+
collisionPadding={100}
118116
{...props}
119117
>
120118
{showArrow && (

0 commit comments

Comments
 (0)