Skip to content

Commit

Permalink
Fix menu length in the worst case
Browse files Browse the repository at this point in the history
  • Loading branch information
enricoros committed Aug 10, 2023
1 parent 19229b1 commit 0da8930
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/layout/AppBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export function AppBar(props: { sx?: SxProps }) {

{/* Drawer Menu */}
{!!drawerItems && <CloseableMenu
maxHeightGapPx={56} sx={{ minWidth: 320 }}
maxHeightGapPx={56 + 24} sx={{ minWidth: 320 }}
open={!!drawerAnchor} anchorEl={drawerAnchor} onClose={closeApplicationMenu}
placement='bottom-start'
>
Expand All @@ -162,7 +162,7 @@ export function AppBar(props: { sx?: SxProps }) {

{/* Menu Menu */}
<CloseableMenu
maxHeightGapPx={56} noBottomPadding noTopPadding sx={{ minWidth: 320 }}
maxHeightGapPx={56 + 24} noBottomPadding noTopPadding sx={{ minWidth: 320 }}
open={!!menuAnchor} anchorEl={menuAnchor} onClose={closeContextMenu}
placement='bottom-end'
>
Expand Down

1 comment on commit 0da8930

@vercel
Copy link

@vercel vercel bot commented on 0da8930 Aug 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

big-agi – ./

get.big-agi.com
big-agi-enricoros.vercel.app
big-agi-git-main-enricoros.vercel.app

Please sign in to comment.