Skip to content

fix(landing): release banner — single inline row on mobile#110

Closed
bigpuritz wants to merge 1 commit into
mainfrom
fix/release-banner-mobile-row
Closed

fix(landing): release banner — single inline row on mobile#110
bigpuritz wants to merge 1 commit into
mainfrom
fix/release-banner-mobile-row

Conversation

@bigpuritz
Copy link
Copy Markdown
Contributor

On iPhone (≤720px) the release banner was stacking the version on its own line and wrapping the three link labels onto multiple rows because each link carried an eyebrow row + NE-arrow glyph. On a 375px viewport that consumed four lines of vertical space and read as broken layout.

This PR rebuilds the mobile branch as a single inline-flex row:

RELEASE                                 ↘
1.0.0 │ Release notes │ Container image │ Upgrade notes

How it works

Two non-obvious moves to fit everything on one line:

  1. display: contents on the cell wrappers. .release-banner-cell--statement and .release-banner-nav collapse out of the layout tree on mobile, so the version span and the three link <a> elements become direct flex siblings of .release-banner-inner. The desktop two-row grid disappears; one flex row of four items takes its place.

  2. Eyebrows + arrows hidden on mobile. GITHUB / DOCKER HUB / OPERATORS and the NE-arrow SVG are pure noise at this width — the link label itself ("Release notes" etc.) carries the destination. Removing them frees enough horizontal space that even iPhone SE (~320px content) fits the whole row.

Plus a few small numeric tweaks: version font drops from clamp(1.5rem, …, 2rem) to a flat 1rem on mobile; padding tightens to 0.7rem 1rem; every link including the first gets a left hairline rule so the row reads cleanly as version │ link │ link │ link; .release-banner-link-label is white-space: nowrap so individual labels never break.

flex-wrap: wrap stays as a safety net for extreme viewports but should not trigger in practice on any current iPhone.

Desktop unchanged

Above 720px the existing two-row eyebrow + label structure with the NE-arrow hover lift continues to ship — this is purely a mobile reshape.

Test plan

  • npm run format clean
  • npm run format:check clean
  • npm run build clean (33 pages, no drift)
  • Reviewer: open the deploy preview on iPhone (or Chrome DevTools at 375px wide). Verify the banner reads as one line: 1.0.0 │ Release notes │ Container image │ Upgrade notes. Tap each link to confirm the underlying URLs are unchanged.
  • Reviewer: switch to desktop, confirm the banner still shows the eyebrow + label + NE-arrow on hover for each link as before.
  • Reviewer: check both light and dark themes on mobile — the hairline rules should be visible on both surface tones.

Mobile (≤720px) was stacking the version on its own line and then
wrapping the three link labels onto multiple rows because each link
carried its eyebrow row plus a NE-arrow glyph. On a 375px iPhone
viewport it ate four rows of vertical space and read as a broken layout.

Rebuild the mobile branch as a single inline-flex row:

- `.release-banner-inner` switches from grid to `display: flex` with
  `flex-wrap: wrap` and baseline alignment. Padding tightens to
  `0.7rem 1rem` to claw back horizontal room.
- `.release-banner-cell--statement` and `.release-banner-nav` are set
  to `display: contents` so their wrappers vanish from the layout
  tree — the version span and the three link `<a>` elements become
  direct flex siblings of `.release-banner-inner`. Result: one flex
  row of four items (`version │ link │ link │ link`) instead of
  the previous two-row stack.
- The eyebrows (`GITHUB`, `DOCKER HUB`, `OPERATORS`) and the
  NE-arrow SVG are `display: none` on mobile — they are pure noise
  at this width, the link label itself carries the destination.
- Version font drops from clamp(1.5rem,…,2rem) to a flat `1rem`
  on mobile so even iPhone SE (~320px content width) fits the
  whole row without wrap.
- Every link, including the first, gets a left hairline rule on
  mobile (the desktop "first child has no border" reset is
  inverted) so the row reads as `version │ link │ link │ link`.
- `.release-banner-link-label` becomes `white-space: nowrap` so
  individual labels stay single-line; flex-wrap stays available
  as a safety net for extreme viewports but should not trigger
  in practice.

Desktop layout unchanged — the existing two-row eyebrow + label
structure with NE-arrow hover still ships at >720px.

Refs #91, #94 (previous banner iterations).
@bigpuritz bigpuritz added the documentation Improvements or additions to documentation label May 14, 2026
@bigpuritz
Copy link
Copy Markdown
Contributor Author

Superseded by #111 — the mobile single-row reshape was cherry-picked into the eyebrow-gap branch so a single PR carries both banner-polish changes (eyebrow gap on desktop, single-row layout on mobile).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant