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

Disabling navigation drawer expansion #589

Open
OskarGroth opened this issue Nov 8, 2023 · 3 comments
Open

Disabling navigation drawer expansion #589

OskarGroth opened this issue Nov 8, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@OskarGroth
Copy link

OskarGroth commented Nov 8, 2023

ux

The UX for the navigation drawer is pretty bad, as it displaces the whole menu vertically and just adds unnecessary animation for a common interaction. I also don't need a 200x200px size logo.

I'd like to disable the expansion feature altogether and just always keep it expanded/minimized. Is there a way to achieve that?

@OskarGroth OskarGroth changed the title Disabling navigation drawer Disabling navigation drawer expansion Nov 8, 2023
@petost
Copy link

petost commented Nov 9, 2023

Try
autoOpenDrawer:false
https://firecms.co/docs/navigation/app_config

Is this what you are looking for?

@OskarGroth
Copy link
Author

OskarGroth commented Nov 9, 2023

I'm aware of that flag, but it doesn't fix the issue, which is the displacement of UI that happens when the drawer is expanded (see gif).

It would be better if:

  1. There was an option on Scaffold for changing the mode of the sidebar to simply be static open/closed. I'm trying to achieve it via a custom app but it is quite tricky since the drawer is located inside the Scaffold component.
  2. The UI is reworked here so that the logo doesn't resize vertically

@fgatti675
Copy link
Member

Hi @OskarGroth
Sorry for the late reply.
We are reworking the base components to make them more customizable, and we are taking this input. Thanks!

@fgatti675 fgatti675 added the enhancement New feature or request label Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants