1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00

make footer button content scrollable, closes #107

This commit is contained in:
checktheroads
2021-01-18 22:48:14 -07:00
parent 18307c1978
commit e5b26e6a20

View File

@@ -14,6 +14,7 @@ export const FooterButton: React.FC<TFooterButton> = (props: TFooterButton) => {
return (
<Menu placement={placement} preventOverflow isLazy>
<MenuButton
zIndex={2}
as={Button}
size={size}
variant="ghost"
@@ -25,9 +26,12 @@ export const FooterButton: React.FC<TFooterButton> = (props: TFooterButton) => {
px={6}
py={4}
bg={bg}
// Ensure the height doesn't overtake the viewport, especially on mobile. See overflow also.
maxH="50vh"
color={color}
boxShadow="2xl"
textAlign="left"
overflowY="auto"
mx={{ base: 1, lg: 2 }}
maxW={{ base: '100%', lg: '50vw' }}
{...rest}