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