Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

ui: fix menu is not scrollable on small screens

Abdullah Atta90b7b5f87b70
diff --git a/packages/ui/src/components/menu/index.tsx b/packages/ui/src/components/menu/index.tsx
index bf7cb4c69..c9712bb4b 100644
--- a/packages/ui/src/components/menu/index.tsx
+++ b/packages/ui/src/components/menu/index.tsx
@@ -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>
);