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;
|
padding: 6px;
|
||||||
min-width: 180px;
|
min-width: 180px;
|
||||||
min-height: 44px;
|
min-height: 44px;
|
||||||
max-height: 75vh;
|
|
||||||
pointer-events: all;
|
pointer-events: all;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import useWindowSize from "~/hooks/useWindowSize";
|
|||||||
const useMenuHeight = ({
|
const useMenuHeight = ({
|
||||||
visible,
|
visible,
|
||||||
elementRef,
|
elementRef,
|
||||||
maxViewportHeight = 70,
|
maxViewportHeight = 90,
|
||||||
margin = 8,
|
margin = 8,
|
||||||
}: {
|
}: {
|
||||||
/** Whether the menu is visible. */
|
/** Whether the menu is visible. */
|
||||||
|
|||||||
Reference in New Issue
Block a user