Repository navigation
fix(ui): the dashboard's search box no longer runs under the avatar on tablets - #373
Merged
Merged
Conversation
…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.
|
Warning Review limit reachedYou'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. View limit details
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.csscapped the search form at half of its row while the input kept its 10rem minimum frombase.css, so the box spilled out of its form and under the avatar. Now:min(320px, 40vw)width it has on wide windows;.search-box inputgetsmin-width: 0, so the box always fits its form. The Grant administrator page's search uses.search-boxtoo, and its input now also shrinks with its label instead of spilling out on narrow screens.admin.spec.tsgains 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.viewportsandscrollsSidewaysmoved tohelpers.tsso 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, alongsidelayout.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