Skip to content

fix(sidebar): remove button to close on mobile#127

Closed
jcalor wants to merge 1 commit intodevelopfrom
fix/navbar-mobile
Closed

fix(sidebar): remove button to close on mobile#127
jcalor wants to merge 1 commit intodevelopfrom
fix/navbar-mobile

Conversation

@jcalor
Copy link
Contributor

@jcalor jcalor commented Jan 6, 2026

We don't want to collapse the sidebar on mobile because it wouldn't be UX friendly.
Mobile looking sidebar:

image

@changeset-bot
Copy link

changeset-bot bot commented Jan 6, 2026

🦋 Changeset detected

Latest commit: 127ac40

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@ivao/atmosphere-react Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@jcalor jcalor requested review from CptnJon and Tchekda January 12, 2026 17:01
Copy link
Member

@Tchekda Tchekda left a comment

Choose a reason for hiding this comment

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

Code looks good but I am not sure to understand why you don't want to collapse the sidebar on mobile ?
I would actually want to collapse it on mobile and force it on desktop ?

@jcalor
Copy link
Contributor Author

jcalor commented Jan 12, 2026

My idea is to either display or not the sidebar, not just collapsing it. However I agree that it might be very project-specific and other people using that component might not want it to use it this way, so I can rework it to pass it as a prop?

@Tchekda
Copy link
Member

Tchekda commented Jan 13, 2026

@CptnJon what do you think ?

'flex shrink-0 flex-col items-start whitespace-nowrap transition-all',
isSidebarOpen
? `ml-4 ${props.isGroupOpen ? 'w-fit' : 'w-48'} opacity-100`
? `ml-4 w-fit min-w-48 opacity-100`
Copy link
Collaborator

Choose a reason for hiding this comment

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

What is the goal of that change? It will change the current behavior that subitems of groups will not have a fixed width of 12rem.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Having a fixed width and a long title or description in the sidebar item outside a group will cause them to be cut off

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yeah, I see. I am not sure whether I like a sidebar with 440px width either. Text-Wrapping looks shit as well. @wolfmaster8 do you have a (good) opinion?

@CptnJon
Copy link
Collaborator

CptnJon commented Jan 14, 2026

Sorry, it's late. Let's start over:
I just noticed you can wrap the sidebar into a sheet, which seems like the better solution (which you probably did in the screenshot?!). A simple prop to hide the button is the obvious solution!

@jcalor jcalor changed the title fix(navbar): remove button to close on mobile fix(sidebar): remove button to close on mobile Feb 8, 2026
@wolfmaster8
Copy link
Collaborator

@jcalor I think the best change would be to update our sidebar component to the latest version on shadcn as it handles in a better way mobile shadcn Sidebar. I'll start working on it

@jcalor jcalor closed this Feb 10, 2026
@jcalor jcalor deleted the fix/navbar-mobile branch February 10, 2026 09:12
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.

4 participants