Skip to content

Optimize sidebar behaviour on mobile devices#251

Merged
JammingBen merged 2 commits intomainfrom
feat/mobile-sidebars
Feb 28, 2025
Merged

Optimize sidebar behaviour on mobile devices#251
JammingBen merged 2 commits intomainfrom
feat/mobile-sidebars

Conversation

@JammingBen
Copy link
Copy Markdown
Member

@JammingBen JammingBen commented Feb 28, 2025

Reworks how the sidebars on the left and right behave on smaller screens to improve the mobile experience. The left sidebar now toggles automatically with smaller screen sizes. The right sidebar on the other hand only snaps on screens <580px.

As discussed with @tbsbdr , we currently don't care about the user setting for the left sidebar. That means resizing the screen could potentially expand the sidebar despite the user having it toggled in general. We can tackle this as soon as we correctly persist this setting.

Also fixes the search bar appearance in the mobile view and refactors 2 components to use script setup. So this PR is best reviewed by commits.

closes #212

@JammingBen JammingBen self-assigned this Feb 28, 2025
Reworks how the sidebars on the left and right behave on smaller screens to improve the mobile experience.

The left sidebar now toggles automatically with smaller screen sizes. The right sidebar on the other hand only snaps on screens <580px.

Also fixes the search bar appearance in the mobile view.
Copy link
Copy Markdown
Member

@AlexAndBear AlexAndBear left a comment

Choose a reason for hiding this comment

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

Damn, love it 😍

There is still a little bug, that the main content disappears when the sidebar is opened in mobile view and the viewport will be extended. This also occurs on the main branch.

@JammingBen
Copy link
Copy Markdown
Member Author

There is still a little bug, that the main content disappears when the sidebar is opened in mobile view and the viewport will be extended. This also occurs on the main branch.

Yes, will tackle that in a separate PR 👍

@JammingBen JammingBen merged commit 668cc13 into main Feb 28, 2025
@JammingBen JammingBen deleted the feat/mobile-sidebars branch February 28, 2025 09:49
JammingBen added a commit that referenced this pull request Mar 12, 2025
Follow-up after #251 where we changed the snapping point of the right sidebar.
@kulmann kulmann changed the title feat: mobile sidebars Optimize mobile sidebars Mar 17, 2025
@kulmann kulmann changed the title Optimize mobile sidebars Optimize sidebar behaviour on mobile devices Mar 17, 2025
@openclouders openclouders mentioned this pull request Mar 17, 2025
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Prevent Sidebar from Snapping

3 participants