Skip to content

fix(header): resolve layout overflow and improve search bar responsiveness#8

Merged
Bartek532 merged 1 commit intoturbostarter:mainfrom
Moamal-2000:fix/header-layout-overflow
Apr 30, 2026
Merged

fix(header): resolve layout overflow and improve search bar responsiveness#8
Bartek532 merged 1 commit intoturbostarter:mainfrom
Moamal-2000:fix/header-layout-overflow

Conversation

@Moamal-2000
Copy link
Copy Markdown
Contributor

@Moamal-2000 Moamal-2000 commented Apr 30, 2026

Summary

This PR fixes a horizontal scrollbar and layout-breaking issue occurring between 768px and 868px.

Changes:

  • Added gap-2 to the header wrapper for consistent spacing.
  • Updated the right-side wrapper with flex-auto and justify-end to ensure it correctly occupies available space and aligns to the right.
  • Refactored the Search component:
    • Applied max-w-52, min-w-22, and w-full with shrink to allow the bar to resize fluidly.
    • Hidden the "Search..." text on medium screens (hidden lg:block) to save horizontal space, preventing it from pushing other navigation elements.

Related issues

None

Validation

  • bun run lint
  • bun run format
  • bun run build
  • bun run build:registry if registry files changed
  • Manual verification completed

Checklist

  • I kept this PR focused on a single change.
  • I performed a self-review before requesting review.
  • I updated docs/examples if behavior changed.
  • I added screenshots or recordings for visible UI changes.

Notes

The search bar now gracefully transitions from a full-width input style to a more compact icon-focused button as the viewport shrinks, eliminating the need for a horizontal scrollbar.

Visual Changes (Before vs After)

Before After
Before After

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 30, 2026

@Moamal-2000 is attempting to deploy a commit to the zagrodzki Team on Vercel.

A member of the Team first needs to authorize it.

@Bartek532 Bartek532 merged commit faa78bd into turbostarter:main Apr 30, 2026
3 of 4 checks passed
@Moamal-2000 Moamal-2000 deleted the fix/header-layout-overflow branch April 30, 2026 06:12
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