Skip to content

fix(landing): release banner — wider RELEASE/version gap (desktop) + single inline row (mobile)#111

Merged
bigpuritz merged 4 commits into
mainfrom
fix/release-banner-eyebrow-gap
May 14, 2026
Merged

fix(landing): release banner — wider RELEASE/version gap (desktop) + single inline row (mobile)#111
bigpuritz merged 4 commits into
mainfrom
fix/release-banner-eyebrow-gap

Conversation

@bigpuritz
Copy link
Copy Markdown
Contributor

@bigpuritz bigpuritz commented May 14, 2026

Two related banner-polish changes consolidated in one PR (replaces #110, which is now closed):

1. Desktop — wider gap between RELEASE eyebrow and version (e665c4e)

The default 0.2rem gap on .release-banner-cell works for the nav links because their eyebrow + label are typographically close in weight. The statement cell pairs a 0.7rem mono-caps eyebrow with an Inter 800 version that is roughly 3× taller — at that ratio the same gap reads as cramped, with the eyebrow visually crashing into the version glyphs.

Override on .release-banner-cell--statement: gap: 0.55rem (~9px). Nav links keep their tighter 0.2rem gap.

2. Mobile — single inline row (05737d2, cherry-picked from #110)

On iPhone (≤720px) the 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.

Mobile rebuild as a single inline-flex row:

1.0.0 │ Release notes │ Container image │ Upgrade notes

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

  • 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>s become direct flex siblings.
  • Eyebrows + arrows hidden on mobileGITHUB / DOCKER HUB / OPERATORS and the NE-arrow SVG are pure noise at this width; the link labels carry the destination.

Plus: version font drops from clamp(1.5rem, …, 2rem) to flat 1rem on mobile, padding tightens to 0.7rem 1rem, every link including the first gets a left hairline rule (desktop "first child no border" reset is inverted), white-space: nowrap on labels prevents wrap.

Desktop layout above 720px is unchanged.

Test plan

  • npm run format clean
  • npm run build clean (33 pages, no drift)
  • Reviewer (desktop): verify RELEASE and 1.0.0 now read as two clearly separated typographic items.
  • Reviewer (iPhone / DevTools at 375px): verify the banner reads as one line 1.0.0 │ Release notes │ Container image │ Upgrade notes. Tap each link to confirm URLs unchanged. Check both light and dark themes.

The default 0.2rem gap on .release-banner-cell works for the nav
links because their eyebrow and label are typographically close in
weight. The statement cell pairs a 0.7rem mono caps eyebrow with an
Inter 800 version that is roughly 3× taller — at that ratio the
default gap reads as cramped, with the eyebrow visually crashing
into the version glyphs.

Override `.release-banner-cell--statement` with a `gap: 0.55rem`
(~9px) so the eyebrow has clear separation from the version
without floating loose. Nav links keep their tighter 0.2rem gap.

Refs #91 (banner redesign).
@bigpuritz bigpuritz added the documentation Improvements or additions to documentation label May 14, 2026
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 changed the title fix(landing): widen the gap between RELEASE eyebrow and version fix(landing): release banner — wider RELEASE/version gap (desktop) + single inline row (mobile) May 14, 2026
bigpuritz added 2 commits May 14, 2026 09:17
The previous mobile fix hid the nav-link eyebrows
(GITHUB / DOCKER HUB / OPERATORS) but kept the statement-cell eyebrow
("RELEASE") visible. On iPhone 14 Pro Max (~430px viewport) the
combined width of `RELEASE 1.0.0 │ Release notes │ Container image │
Upgrade notes` plus paddings still overflowed and wrapped "Upgrade
notes" to a second line.

Two changes:

- Add `.release-banner-eyebrow` to the mobile `display: none` rule
  alongside the link eyebrows. The version glyphs alone communicate
  "release" in the banner context — the explicit "RELEASE" eyebrow
  is desktop-only typographic accent.
- Tighten link / version paddings from 0.55rem to 0.4rem so the
  remaining items breathe but pack tighter. Saves another ~10px
  across the row.

Mobile now reads as one line `1.0.0 │ Release notes │ Container
image │ Upgrade notes` on every modern iPhone viewport.

Refs #91, #94 (banner iterations).
Previous mobile fix sized for iPhone 14 Pro Max (~430px content area)
and overflowed by ~25px on iPhone SE (375px viewport, ~343px content
area), wrapping "Upgrade notes" to a second line.

Three coordinated tightenings, ~20px saved across the row:

- Container horizontal padding 1rem → 0.85rem (saves ~5px total).
- Link + version inter-item padding 0.4rem → 0.3rem (saves ~10px
  across the four padding pairs).
- Link label font-size 0.78rem → 0.72rem (saves ~5-6px). 0.72rem
  (~11.5px) is the floor for Inter 500 to still scan cleanly; going
  smaller starts to look mistreated. Letter-spacing -0.005em adds
  the extra hairline of legibility back at the smaller size.

Mobile now renders a single line `1.0.0 │ Release notes │ Container
image │ Upgrade notes` from iPhone SE (375px) up through iPhone Pro
Max (~430px). Larger viewports get slightly more whitespace, which
is acceptable.

Refs #91 (banner redesign).
@bigpuritz bigpuritz merged commit 7c2d208 into main May 14, 2026
1 check passed
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