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

[bug]: Sidebar hides in mobile view #6265

Open
2 tasks done
sapkotagaurav opened this issue Jan 3, 2025 · 1 comment
Open
2 tasks done

[bug]: Sidebar hides in mobile view #6265

sapkotagaurav opened this issue Jan 3, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@sapkotagaurav
Copy link

Describe the bug

I have implemented the sidebar with collapse button. The collapse button is inside the sidebar, and the sidebar hides in mobile view. There is no way to access the sidebar in mobile view. I want it to collapse to icons instead of hiding.

This can also be seen on some shadcn blocks.

https://ui.shadcn.com/view/styles/new-york/sidebar-13

sidebar in dialog

https://ui.shadcn.com/view/styles/new-york/sidebar-15
right sidebar in this case

image

Affected component/components

Sidebar

How to reproduce

  1. Create a sidebar with trigger inside the sidebar
  2. reduce the size of the screen below 768px

Codesandbox/StackBlitz link

https://ui.shadcn.com/view/styles/new-york/sidebar-13

Logs

No response

System Info

Windows 11, NextJS 15, Chrome

Before submitting

  • I've made research efforts and searched the documentation
  • I've searched for existing issues
@sapkotagaurav sapkotagaurav added the bug Something isn't working label Jan 3, 2025
@r2hu1
Copy link

r2hu1 commented Jan 4, 2025

trying to figure it out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants