fix: Allow context menus to use more available viewport height

This commit is contained in:
Tom Moor
2023-10-10 19:32:24 -04:00
parent bf53ac4f4b
commit 547b6c0ac9
2 changed files with 1 additions and 2 deletions

View File

@@ -243,7 +243,6 @@ export const Background = styled(Scrollable)<BackgroundProps>`
padding: 6px;
min-width: 180px;
min-height: 44px;
max-height: 75vh;
pointer-events: all;
font-weight: normal;

View File

@@ -5,7 +5,7 @@ import useWindowSize from "~/hooks/useWindowSize";
const useMenuHeight = ({
visible,
elementRef,
maxViewportHeight = 70,
maxViewportHeight = 90,
margin = 8,
}: {
/** Whether the menu is visible. */