chatcraft.org icon indicating copy to clipboard operation
chatcraft.org copied to clipboard

Find a better fix for Menu Positioning

Open Amnish04 opened this issue 1 year ago • 0 comments

We've encountered a critical UI breaking bug a couple of times now, where a Chakra Menu , when placed near the bottom of the screen pushes the entire viewport upwards on any routing operation.

The reason for this happening is documented in the following blog post: https://dev.to/amnish04/no-backing-away-when-hacking-away-2h27

Recently, it resurfaced in #442 and I fixed it using the strategy=fixed hack in #445 .

However, we probably need to look for a better fix so to prevent it from ever happening again.

Eventually, we might have to replace all the Chakra Menus with React Menu for submenus, and we're not sure if that also causes this problem. Since even React Menu has its own set of issues right now, we might have to find a better alternative if we can't get around those.

So I think its better to wait and watch where it goes, and look into this when we have a stable menu component integrated with the app.

Amnish04 avatar Feb 14 '24 17:02 Amnish04