Fix dev overlay header layout on small screens (#99049)
## Summary
On narrow screens, the dev overlay header clips the version/bundler
badge and wraps “No issues” while hiding its horizontal scrollbar. Below
768px, the header now wraps its items onto a second row when needed. The
empty Issues tab stays visible, the version pill keeps its desktop
dimensions and rounded shape, and the mobile header has balanced spacing
above the tabs and below the pill. The wide-screen layout is unchanged.
This changes the shared overlay header independently of #99002.
## Before / after
Both images use the same /insight-only route at a 390 CSS-pixel
viewport, captured directly in Chrome as PNGs. The empty Issues tab
remains visible, and the version and bundler metadata move to a balanced
second row.
<table>
<thead>
<tr>
<th>Before</th>
<th>After</th>
</tr>
</thead>
<tbody>
<tr>
<td><img width="390" height="300" alt="Before: clipped version badge and
wrapped empty Issues label at 390px"
src="https://github.com/user-attachments/assets/a5e21308-0be1-4cb3-b4a8-101b3b793ff3"
/></td>
<td><img width="390" height="300" alt="After: balanced wrapped header
and fully visible rounded version pill at 390px"
src="https://github.com/user-attachments/assets/9bcd65cf-bdf3-402e-b121-0c66f0d63800"
/></td>
</tr>
</tbody>
</table>
## Wider screens — after
The header stays on one row at both widths, with no horizontal overflow.
The version pill retains its desktop dimensions and styling.
**768px viewport**
<img width="768" height="300" alt="After at 768px: navigation and
version pill fit on one row"
src="https://github.com/user-attachments/assets/f8994ca2-6d90-469a-b0df-a9d37165d838"
/>
**1280px viewport** (cropped to the overlay)
<img width="1000" height="300" alt="After at 1280px: unchanged desktop
header layout"
src="https://github.com/user-attachments/assets/e27eef41-d477-42f7-bcf3-224a1675e919"
/>
## Verification
- `pnpm test-dev-turbo
test/development/app-dir/instant-insights-tab-overlay/instant-insights-tab-overlay.test.ts`
— all 5 tests passed.
- Browser checks at 390, 768, and 1280 CSS-pixel widths confirm that the
empty Issues tab remains visible, the pill keeps its 230.96 × 24px
desktop dimensions and rounding, the mobile header has balanced spacing,
and the wide-screen header remains on one row.
- JavaScript build, formatting, and ESLint passed. Full `pnpm build-all`
was attempted but blocked by the existing Rust workspace manifest error:
`default-features = false` cannot override the workspace's
`turbo-persistence` default features. Runtime verification used the
published canary.38 native binary.
<!-- NEXT_JS_LLM -->
Showing
Please
register
or
sign in
to comment