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

Docs sidebar should be hidden in landscape on mobile #194

Open
ZYJLiu opened this issue Feb 5, 2025 · 3 comments
Open

Docs sidebar should be hidden in landscape on mobile #194

ZYJLiu opened this issue Feb 5, 2025 · 3 comments

Comments

@ZYJLiu
Copy link
Collaborator

ZYJLiu commented Feb 5, 2025

Suggest to increase screen size where sidebar should be hidden in landscape on mobile.

Seems related to CustomSidebar component, but I had trouble figuring out how to hide sidebar while still having it toggle display with the hamburger.

Image

Expected behavior:

Image

@pomber
Copy link
Contributor

pomber commented Feb 14, 2025

This is trickier than it seems because Fumadocs has the md breakpoint baked into multiple components (DocsLayout and Sidebar).

Changing it isn’t just about hiding the sidebar, it would also mean adjusting the layout and overriding a bunch of styles. It’s doable, but it’ll take some extra work.

If you think it’s worth it, let me know, and I can take care of it.

@ZYJLiu
Copy link
Collaborator Author

ZYJLiu commented Feb 14, 2025

Thanks Rodrigo, we can keep this open for now and address it later as it is minor issue.
Items like codehike and updating the presentation of content are higher priority than this issue.

@fuma-nama
Copy link

just personal recommendation, you can use Fumadocs CLI to install and make your own layout, I think you'll prefer that way (at least working for Fumadocs 14 and above)

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

No branches or pull requests

3 participants