Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed expandable list and navigation menu #8336

Merged
merged 4 commits into from
Nov 5, 2024
Merged

Conversation

lucasbordeau
Copy link
Contributor

For release 0.32

  • Fixed expandable list dropdown UI bugs
  • Added ScrollWrapper on navigation menus

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

This PR addresses UI bugs in the navigation and dropdown components by improving scrolling behavior and dropdown positioning.

  • Added ScrollWrapper components in MainNavigationDrawerItems.tsx and CurrentWorkspaceMemberFavorites.tsx to enable proper scrolling in navigation menus
  • Changed DropdownMenu height from '100%' to 'auto' in DropdownMenu.tsx for better content fitting
  • Implemented FloatingPortal and shift() middleware in ExpandedListDropdown.tsx to prevent dropdowns from going off-screen
  • Modified dropdown placement to 'bottom-start' for consistent positioning

4 file(s) reviewed, 3 comment(s)
Edit PR Review Bot Settings | Greptile

}}
Icon={IconSettings}
/>
<ScrollWrapper contextProviderName="navigationDrawer">
Copy link
Contributor

Choose a reason for hiding this comment

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

style: ScrollWrapper added here only wraps Search and Settings items, but other navigation sections remain outside scroll context. Consider if other sections need scrolling support too.

Comment on lines +59 to +61
anchorElement
? Math.max(220, anchorElement.getBoundingClientRect().width)
: undefined
Copy link
Contributor

Choose a reason for hiding this comment

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

style: getBoundingClientRect() could cause layout thrashing if called frequently. Consider memoizing this value if the anchorElement changes often.

@lucasbordeau lucasbordeau enabled auto-merge (squash) November 5, 2024 10:45
@lucasbordeau lucasbordeau merged commit 0893774 into main Nov 5, 2024
19 checks passed
@lucasbordeau lucasbordeau deleted the fix/release-0-32 branch November 5, 2024 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants