Skip to content

fix(web): keep the breadcrumb readable on narrow screens - #21

Merged
XuehaiWang merged 1 commit into
mainfrom
fix/benchmarks-topbar-crumbs
Nov 25, 2026
Merged

XuehaiWang merged 1 commit into
mainfrom
fix/benchmarks-topbar-crumbs

Conversation

@kiri603

@kiri603 kiri603 commented Nov 22, 2026 •

Copy link
Copy Markdown
Collaborator

What and why

The narrow-screen wrap rules only applied to pages that opted into .topbar-wrap, so /benchmarks at 480px kept a single 48px row: three buttons took the width and the breadcrumb was squeezed to 40px — "Benchma".

The bar now wraps for every page below 700px. The crumbs take a full row of their own with the buttons underneath, and the wrap class is gone from the two pages that still passed it.

Validation

Checked in Chrome against a real daemon, measuring the bar, the crumbs container and the crumb text:

Window Bar height Crumbs width Overflow
480 71 392 (was 40) none
600 71 512 none
700 71 612 none
768 / 1024 48 78 none (single row again)
360 105 272 none

Also checked /bench/job-7f3a21, /bench/job-7f3a21/trials/job-7f3a21.7 and /runs/a1f4c2 at 480 and 768: no overflow anywhere.

packages/web/test/topbar.test.tsx asserts the stylesheet keeps the wrap rule for .topbar (and no longer needs .topbar-wrap) and that TopBar renders the expected markup.

The wrap rules only applied to pages that opted into `.topbar-wrap`, so /benchmarks at 480px
kept a single 48px row: three buttons took the width and the breadcrumb was squeezed to 40px
("Benchma").

The bar now wraps for every page below 700px. The crumbs take a full row of their own with
the buttons underneath, and the wrap class is gone from the two pages that still passed it.
At 480px the breadcrumb is a full 392px wide; at 768px and above the bar stays on one row.
@kiri603
kiri603 requested a review from XuehaiWang as a code owner November 22, 2026 08:45
@XuehaiWang
XuehaiWang merged commit 8f9c603 into main Nov 25, 2026
1 check passed
@crepuscular-drizzle
crepuscular-drizzle deleted the fix/benchmarks-topbar-crumbs branch November 26, 2026 11:29
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