fix: Allow context menus to use more available viewport height
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ import useWindowSize from "~/hooks/useWindowSize";
|
||||
const useMenuHeight = ({
|
||||
visible,
|
||||
elementRef,
|
||||
maxViewportHeight = 70,
|
||||
maxViewportHeight = 90,
|
||||
margin = 8,
|
||||
}: {
|
||||
/** Whether the menu is visible. */
|
||||
|
||||
Reference in New Issue
Block a user