Skip to content

fix: align explore search bar inline with brand and login#297

Merged
SimplicityGuy merged 1 commit intomainfrom
fix/navbar-search-alignment
Apr 12, 2026
Merged

fix: align explore search bar inline with brand and login#297
SimplicityGuy merged 1 commit intomainfrom
fix/navbar-search-alignment

Conversation

@SimplicityGuy
Copy link
Copy Markdown
Owner

Summary

  • The Search/Ask NLQ toggle was nested inside .navbar-search, making the search column 72px tall while brand and login were 32px. With align-items: center, the input row floated to the top of its column and visually misaligned with brand/login.
  • Switched .navbar-top from flex to a 3-column CSS grid (auto 1fr auto) with two rows. Brand, search input, and login are pinned to row 1.
  • Moved #searchAskToggle and #nlqPanel out of .navbar-search into a sibling .navbar-search-extras div that occupies row 2 of column 2, so the input row stays inline with brand and login regardless of NLQ state.

Before

The search bar sat below the logo's center line because the toggle was expanding its container.

After

Brand, search input, and login button all share the same horizontal centerline. Search/Ask toggle (when NLQ is enabled) sits centered in row 2 below the search input, above the tab bar.

Test plan

  • All 953 explore JS tests pass (just test-js)
  • Verified live by injecting CSS into the deployed page: row 1 brand/input/login centered at y=27; extras row at y=62-96; tabs start at y=104, no overlap
  • Visual review on staging after merge

🤖 Generated with Claude Code

The Search/Ask NLQ toggle was nested inside `.navbar-search`, making the
search column 72px tall while brand and login were 32px. With
`align-items: center`, the input row floated to the top of its column and
visually misaligned with brand/login, leaving the search bar offset
vertically.

Switch `.navbar-top` to a 3-column CSS grid (`auto 1fr auto`) with two
rows. Move the toggle and Ask panel out of `.navbar-search` into a sibling
`.navbar-search-extras` div that occupies row 2 of column 2. Brand, search
input, and login are pinned to row 1 and stay vertically aligned
regardless of how tall the optional NLQ extras row beneath the search
input becomes.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 12, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@SimplicityGuy SimplicityGuy merged commit 308b2a9 into main Apr 12, 2026
41 checks passed
@SimplicityGuy SimplicityGuy deleted the fix/navbar-search-alignment branch April 12, 2026 23:22
@github-actions
Copy link
Copy Markdown
Contributor

E2E Coverage (webkit)

Totals Coverage
Statements: 47.64% ( 1241 / 2605 )
Lines: 47.64% ( 1241 / 2605 )

StandWithUkraine

@github-actions
Copy link
Copy Markdown
Contributor

E2E Coverage (firefox)

Totals Coverage
Statements: 47.64% ( 1241 / 2605 )
Lines: 47.64% ( 1241 / 2605 )

StandWithUkraine

@github-actions
Copy link
Copy Markdown
Contributor

E2E Coverage (chromium)

Totals Coverage
Statements: 47.64% ( 1241 / 2605 )
Lines: 47.64% ( 1241 / 2605 )

StandWithUkraine

@github-actions
Copy link
Copy Markdown
Contributor

E2E Coverage (webkit - iPhone 15)

Totals Coverage
Statements: 47.64% ( 1241 / 2605 )
Lines: 47.64% ( 1241 / 2605 )

StandWithUkraine

@github-actions
Copy link
Copy Markdown
Contributor

E2E Coverage (webkit - iPad Pro 11)

Totals Coverage
Statements: 47.64% ( 1241 / 2605 )
Lines: 47.64% ( 1241 / 2605 )

StandWithUkraine

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