Skip to content

Stack header buttons on mobile so cross-link fits#36

Merged
fleveque merged 1 commit into
mainfrom
fix/header-button-row-mobile
May 25, 2026
Merged

Stack header buttons on mobile so cross-link fits#36
fleveque merged 1 commit into
mainfrom
fix/header-button-row-mobile

Conversation

@fleveque

Copy link
Copy Markdown
Owner

Why

On narrow viewports the four header buttons on /p/:slug and /r/:slug (cross-link + Save Image + Share Link + Dashboard) overflowed the right edge of the screen — the cross-link in particular fell off entirely on phones.

What changed

Split the single row into two semantic groups (share / navigation) and let flex stack them on mobile, inline on sm+:

  • < sm: two rows stacked, right-aligned. Share buttons (Save Image + Share Link) on top, navigation (cross-link + Dashboard) below.
  • ≥ sm: one row, unchanged visual layout end-to-end.

Applied identically to portfolio_live.ex and radar_live.ex so the two pages keep parity.

Test plan

  • mix test — 44 / 44
  • mix format --check-formatted — clean
  • mix compile --warnings-as-errors — clean
  • Manual: open /p/<slug> and /r/<slug> on a narrow viewport (< 640px) — all four buttons visible across two rows, nothing clipped
  • Manual: same pages on desktop (≥ 640px) — single row, layout unchanged

🤖 Generated with Claude Code

The single right-aligned row of four buttons (cross-link + Save Image
+ Share Link + Dashboard) overflowed on narrow viewports — the
cross-link in particular fell off the right edge on phones.

Split the row into two semantic groups (share / navigation) and let
flex stack them on mobile, inline on sm+:

- < sm: two rows stacked, right-aligned. Share buttons on top, nav
  (cross-link + Dashboard) below.
- ≥ sm: one row, unchanged visual layout end-to-end.

Applied identically to portfolio_live.ex and radar_live.ex so both
pages keep parity.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@fleveque fleveque merged commit a42b850 into main May 25, 2026
1 check passed
@fleveque fleveque deleted the fix/header-button-row-mobile branch May 25, 2026 10:33
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