Skip to content

[EX-135] Fix sidebar UX on small screens - #101

Merged
klappradla merged 3 commits into
mainfrom
bug/ex-135-fix-sidebar-ux-on-small-screens
Oct 13, 2025
Merged

klappradla merged 3 commits into
mainfrom
bug/ex-135-fix-sidebar-ux-on-small-screens

Conversation

@klappradla

@klappradla klappradla commented Oct 2, 2025

Copy link
Copy Markdown
Member

EX-135

This fixes the sidebar UX for small screens and positions the content centered without horizontal overflow.

Changes

  • Move sidebar drawer under the on small screens

    The values used are inspired by the problem described here.

    We add a top value to the drawer, which is only applies when the positioning of the drawer moves from sticky to fixed (see also https://developer.mozilla.org/en-US/docs/Web/CSS/top), when it's covering the whole screen.

    With the navbar still visible, people can close the sidebar drawer again and aren't forced to click on an old chat.

  • Center content and make it fit the screen width

    Remove an unnecessary padding which caused the content to horizontally overflow on small screens and not being centered anymore

Looks

Ideally just try out the branch locally. But here are the core visual changes as screenshots:

context before after
mobile content Screenshot 2025-10-02 at 14 39 47 Screenshot 2025-10-02 at 14 36 24
mobile sidebar Screenshot 2025-10-02 at 14 39 53 Screenshot 2025-10-02 at 14 36 32
iPad sidebar Screenshot 2025-10-02 at 14 39 32 Screenshot 2025-10-02 at 14 36 51

This is inspired by the problem described here: saadeghi/daisyui#3122

We add a `top` value to the drawer, which is only applies when the
positioning of the drawer moves from sticky to fixed (see also
https://developer.mozilla.org/en-US/docs/Web/CSS/top), when it's
covering the whole screen.

With the navbar still visible, people can close the sidebar drawer
again.
This removes an unnecessary padding which caused the content to
horizontally overflow on small screens. Removing this padding makes the
padding on both sides equal and centers the application.
@klappradla
klappradla force-pushed the bug/ex-135-fix-sidebar-ux-on-small-screens branch from 14e8be2 to a8e6e35 Compare October 2, 2025 12:42
@klappradla
klappradla requested a review from agatheblues October 2, 2025 12:52
@klappradla

Copy link
Copy Markdown
Member Author

Oh wait, the bitcrowd-logo is still cut off! Back to draft.

@klappradla
klappradla marked this pull request as draft October 2, 2025 12:55
@klappradla
klappradla marked this pull request as ready for review October 2, 2025 14:12
@klappradla

Copy link
Copy Markdown
Member Author

Oh wait, the bitcrowd-logo is still cut off! Back to draft.

Fixed this @agatheblues

But I didn't have time to look into the details of how to resize the buttons/icons. Maybe a follow up.

@klappradla
klappradla merged commit 9d65c94 into main Oct 13, 2025
1 check passed
@klappradla
klappradla deleted the bug/ex-135-fix-sidebar-ux-on-small-screens branch October 13, 2025 08:21
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.

2 participants