Wrap the top bar's buttons onto a second row when narrow (closes #272) #273

Merged
clawbot merged 1 commits from issue-272-top-bar-wrap into next 2026-10-02 07:04:17 +02:00
Collaborator

In a narrow window the top bar's two sides, "µPaaS by @sneak" and the New App and Logout buttons, ran into each other. The cause: only justify-between held them apart, with no gap and no wrapping, so at 390 px "@sneak" ended 2 px before the New App button. At any narrower width, or with wider fonts, the gap was gone entirely.

The bar's row now has flex-wrap and gap-3. When one row is too narrow (below about 400 px with the fonts in the screenshots), New App and Logout move to a second row, left-aligned. Wider windows keep one row with at least that gap. The desktop layout is unchanged. The top bar is the same on every logged-in page; the screenshots show the dashboard.

static/css/tailwind.css has no build step in the repo, so the fix uses only classes the committed file already has; the file is unchanged. That ruled out hiding "by @sneak" on small screens, which would need sm:inline. The duplicate New App button stays.

The test checks that the bar's row carries the wrap and gap classes. Whether anything overlaps depends on rendering, which the screenshots show.

Screenshots of a local build, logged in, in a headless browser (taken at twice the pixel density):

Before After
390 px before, 390 px after, 390 px
1280 px before, 1280 px after, 1280 px

Model: opus-5-5

In a narrow window the top bar's two sides, "µPaaS by @sneak" and the New App and Logout buttons, ran into each other. The cause: only `justify-between` held them apart, with no gap and no wrapping, so at 390 px "@sneak" ended 2 px before the New App button. At any narrower width, or with wider fonts, the gap was gone entirely. The bar's row now has `flex-wrap` and `gap-3`. When one row is too narrow (below about 400 px with the fonts in the screenshots), New App and Logout move to a second row, left-aligned. Wider windows keep one row with at least that gap. The desktop layout is unchanged. The top bar is the same on every logged-in page; the screenshots show the dashboard. `static/css/tailwind.css` has no build step in the repo, so the fix uses only classes the committed file already has; the file is unchanged. That ruled out hiding "by @sneak" on small screens, which would need `sm:inline`. The duplicate New App button stays. The test checks that the bar's row carries the wrap and gap classes. Whether anything overlaps depends on rendering, which the screenshots show. Screenshots of a local build, logged in, in a headless browser (taken at twice the pixel density): | | Before | After | |---|---|---| | 390 px | ![before, 390 px](https://git.eeqj.de/attachments/7f4101e8-4619-40c8-a2f9-afe21b5d6391) | ![after, 390 px](https://git.eeqj.de/attachments/cb412a6b-4346-4c85-b72d-7b15106efbc1) | | 1280 px | ![before, 1280 px](https://git.eeqj.de/attachments/d777245f-ef71-458b-ad38-8366098cdb51) | ![after, 1280 px](https://git.eeqj.de/attachments/1bab1687-d781-4c55-8184-968e7b4c538c) | Model: opus-5-5
clawbot added the needs-review label 2026-10-02 06:25:40 +02:00
clawbot self-assigned this 2026-10-02 06:25:40 +02:00
Author
Collaborator

Review passed.

Model: opus-5-5

Review passed. Model: opus-5-5
clawbot added needs-rebase and removed needs-review labels 2026-10-02 06:41:41 +02:00
clawbot added 1 commit 2026-10-02 06:53:12 +02:00
The top bar's two sides were held apart only by justify-between, with
no gap and no wrapping, so at 390 px "by @sneak" ended where the New
App button began. The bar's row now wraps and has a gap: in a window
too narrow for one row, New App and Logout move to a second row; on
wider windows the bar looks as before.

Model: opus-5-5
clawbot force-pushed issue-272-top-bar-wrap from d0f1348f50 to 12cc46e0f2 2026-10-02 06:53:12 +02:00 Compare
clawbot added needs-review and removed needs-rebase labels 2026-10-02 06:53:19 +02:00
Author
Collaborator

Review passed.

Model: opus-5-5

Review passed. Model: opus-5-5
clawbot merged commit d3b9c6fca9 into next 2026-10-02 07:04:17 +02:00
clawbot deleted branch issue-272-top-bar-wrap 2026-10-02 07:04:18 +02:00
Sign in to join this conversation.