ui: fix menu is not scrollable on small screens

This commit is contained in:
Abdullah Atta
2024-03-06 15:37:06 +05:00
parent 6ad074f9dc
commit 94d0bbf381

View File

@@ -192,6 +192,7 @@ function MenuContainer(props: PropsWithChildren<MenuContainerProps>) {
boxShadow: "menu",
border: "1px solid var(--border)",
minWidth: 220,
maxHeight: "80vh",
...sx
}}
{...flexProps}
@@ -213,9 +214,7 @@ function MenuContainer(props: PropsWithChildren<MenuContainerProps>) {
{title}
</Text>
)}
<ScrollContainer suppressScrollX style={{ maxHeight: "80%" }}>
{children}
</ScrollContainer>
<ScrollContainer suppressScrollX>{children}</ScrollContainer>
{/* <FlexScrollContainer>{children}</FlexScrollContainer> */}
</Box>
);