Skip to content

fix(footer): 1.2.1 — legal nav wraps on phones - #12

Merged
DelanoJoey merged 1 commit into
mainfrom
fix/footer-legal-nav-wrap
Sep 18, 2026
Merged

DelanoJoey merged 1 commit into
mainfrom
fix/footer-legal-nav-wrap

Conversation

@DelanoJoey

Copy link
Copy Markdown
Collaborator

Problem

ControlPanelFooter renders its seven legal links in one non-wrapping flex row = 469 px. On a 390 px phone that stretches the whole page to 430 px — on every page of every site that uses the footer — so the browser zooms the page out.

Measured 2026-09-17 with Playwright (iPhone 14 emulation, window.innerWidth should be 390):

Site innerWidth Widest element
adellion.com 430 nav.flex.gap-6 (this nav)
endsights.com 430 same
simplified.media 437 same

Fix

<nav className="flex flex-wrap justify-center gap-6" style={{ rowGap: '0.5rem' }}> — wraps to two centred rows on a phone; still one row on desktop.

Only classes already present in all three sites' production CSS are used (flex-wrap, justify-center, gap-6 — checked against the live stylesheets). The row gap is inline on purpose: adellion and endsights point Tailwind's @source at a dead monorepo path (../../../../packages/ui/src), so classes that only this package uses are never generated there (md:flex-row, pt-6, border-[#292524] are all missing from adellion's live CSS). That is a separate site-side fix.

Version 1.2.0 → 1.2.1.

Verification

  • Same three declarations were applied as a CSS rule in adellion#45 and measured: nav 342 px wide / two rows on iPhone 14, one row at 1280 px, 72/72 pages at innerWidth 390.
  • Syntax check of the edited file: 0 diagnostics. This repo has no test suite.

After merge

Publishing is tag-driven (v* → GitHub Packages): tag v1.2.1 when ready. Sites are on ^1.0.5 with lockfiles, so each needs a bump to pick this up; adellion#45 carries an equivalent local rule in the meantime.

🤖 Generated with Claude Code

https://claude.ai/code/session_012uoKLxwsDgGibussFbZKXW

ControlPanelFooter's legal nav is seven links in one non-wrapping flex row
= 469 px. On a 390 px phone that stretches the whole page to 430 px on
every page of every consuming site (measured 2026-09-17 on adellion.com,
endsights.com and simplified.media), so the browser zooms the page out.

Let the row wrap and centre. Only classes already present in all three
sites' production CSS are used (flex-wrap, justify-center, gap-6); the row
gap is an inline style because adellion and endsights do not scan this
package for Tailwind classes. Desktop stays one row.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012uoKLxwsDgGibussFbZKXW
@DelanoJoey
DelanoJoey merged commit c9ee827 into main Sep 18, 2026
1 check passed
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