You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit dd46679
Browse filesBrowse the repository at this point in the historyBrowse files
fix(ui): the dashboard's search box no longer runs under the avatar on tablets (#373)
On a tablet-sized window, the admin dashboard's search box ran under the
avatar in the top bar, again. Nothing tested the top bar's layout, so
earlier fixes didn't stick.
Between 601px and 860px wide, `narrow.css` capped the search form at
half of its row while the input kept its 10rem minimum from `base.css`,
so the box spilled out of its form and under the avatar. Now:
- the form keeps the `min(320px, 40vw)` width it has on wide windows;
- `.search-box input` gets `min-width: 0`, so the box always fits its
form. The Grant administrator page's search uses `.search-box` too, and
its input now also shrinks with its label instead of spilling out on
narrow screens.
`admin.spec.ts` gains a test that checks, at every window size the
layout spec uses (320, 768, 1280 and 1920px), that the top bar's crumb,
search box and avatar don't overlap and the page doesn't scroll
sideways. `viewports` and `scrollsSideways` moved to `helpers.ts` so
both specs share them.
Proof: the new test failed against a piqueld preview with the old
stylesheet (`tablet: search crosses avatar`), then passed against a
preview with the fix, alongside `layout.spec.ts`. A static check with
the real stylesheet found no overlap from 300px to 1400px wide.
Reviewed with review-loop: 1 round with 2× GPT 6.1 Sol and Claude Opus
5.5. Verdict: approved
> [!NOTE]
> Written by Claude Opus 5.5 in Claude Code and reviewed by GPT 6.1 Sol
and Claude Opus 5.5 (via T3 Code)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
0 commit comments