Skip to content

Responsive pass: masthead + editor toolbar on mobile#4

Open
mozzius wants to merge 1 commit into
mainfrom
samuel/mobile-responsive
Open

Responsive pass: masthead + editor toolbar on mobile#4
mozzius wants to merge 1 commit into
mainfrom
samuel/mobile-responsive

Conversation

@mozzius

@mozzius mozzius commented May 31, 2026

Copy link
Copy Markdown
Owner

Fixes two mobile layout problems (see the reported screenshot): the masthead dateline wrapped into a ragged column beside the wordmark, and the editor toolbar buttons scattered across rows.

Changes (CSS-only, new @media (max-width: 640px) block)

Masthead

  • Stack the wordmark above the dateline instead of side-by-side (the dateline had nowhere to go and wrapped to 3 lines).
  • Slightly smaller wordmark (1.6rem) and dateline; tighter nav gap.

Editor toolbar

  • Root cause of the scatter: the flex: 1 .toolbar__spacer (which right-aligns actions on desktop) fights with flex-wrap on mobile, eating a row and stranding buttons. On mobile it's now display: none.
  • The back link ("← All posts") gets its own row; the action buttons + selects (View live / Delete / Save, or the publication/format selects for new posts) share the remaining rows at equal width (flex: 1), so they tile neatly instead of wrapping randomly.

Misc

  • Container padding 24px → 16px on mobile for a bit more room.

The editor's split-pane already stacked at 820px, so that's untouched.

Testing

  • prettier --check clean.
  • ⚠️ Not visually verified in a browser from here — please eyeball it on a phone (or devtools responsive mode). The change is pure CSS scoped to the 640px breakpoint, so desktop is unaffected.

🤖 Generated with Claude Code

on narrow screens the masthead dateline wrapped into a ragged column beside
the wordmark, and the editor toolbar's flex:1 spacer fought with wrapping and
scattered the buttons.

add a 640px breakpoint: stack the masthead wordmark above a smaller dateline,
tighten container padding, drop the toolbar spacer on mobile, give the back
link its own row, and let the action buttons share rows at equal width.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@vercel

vercel Bot commented May 31, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
standard.horse Ready Ready Preview, Comment May 31, 2026 3:45pm

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