Skip to content

fix(ui): the dashboard's search box no longer runs under the avatar on tablets - #373

Merged
PiquelChips merged 1 commit into
mainfrom
fix/search-input-test
Nov 5, 2026
Merged

PiquelChips merged 1 commit into
mainfrom
fix/search-input-test

Conversation

@PiquelChips

Copy link
Copy Markdown
Member

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

…n tablets

Between 601px and 860px wide, narrow.css capped the top bar's search form at
half of its row while the input kept its 10rem minimum, so the box overflowed
its form and ran under the avatar. The form now keeps the width it has on wide
windows, and the input shrinks with it.

admin.spec.ts checks at every window size that the top bar's crumb, search box
and avatar keep apart and the page does not scroll sideways. It failed against
the old stylesheet.
@coderabbitai

coderabbitai Bot commented Nov 5, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 59 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: fc0e40e3-5560-4372-a543-3186c649dde1
Commits

Reviewing files that changed from the base of the PR and between 5380816 and 32a5c4f.

Files selected for processing: 6

  • crates/ui/assets/style/narrow.css
  • crates/ui/assets/style/shell.css
  • tests/browser/README.md
  • tests/browser/admin.spec.ts
  • tests/browser/helpers.ts
  • tests/browser/layout.spec.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@PiquelChips
PiquelChips merged commit dd46679 into main Nov 5, 2026
9 checks passed
@PiquelChips
PiquelChips deleted the fix/search-input-test branch November 5, 2026 12:13
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.

1 participant