Stack header buttons on mobile so cross-link fits#36
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
On narrow viewports the four header buttons on
/p/:slugand/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+:
Applied identically to
portfolio_live.exandradar_live.exso the two pages keep parity.Test plan
mix test— 44 / 44mix format --check-formatted— cleanmix compile --warnings-as-errors— clean/p/<slug>and/r/<slug>on a narrow viewport (< 640px) — all four buttons visible across two rows, nothing clipped🤖 Generated with Claude Code