Skip to content

feat(layout): keep content in a centred column on wide screens - #10

Merged
coko7 merged 1 commit into
mainfrom
feat/centered-layout
Nov 29, 2026
Merged

coko7 merged 1 commit into
mainfrom
feat/centered-layout

Conversation

@coko7

@coko7 coko7 commented Nov 29, 2026

Copy link
Copy Markdown
Owner

What

  • body is at most 50rem (800px) wide, centred, with 8px side padding. That's the same as the default margin, so phones look exactly as before.
  • The day page (body.wide) allows 75rem (1200px), so the photo stays big.
  • The photo's per-screen-size max-width breakpoints (600/800/1200/1600px) are removed; the column now limits its width.
  • The photo's max-height goes from 85vh to 70vh. At 85vh, a landscape photo on a 1600×900 screen pushed the hints below the bottom edge. At 70vh it's 840×630 with the hints right under it. Portrait photos still fit on phones.

Pre-launch, so no version bump and no changelog note. Independent of #9; the two touch different parts of main.css.

Check

Screenshots at 1600×900 (about, day, changelog) and at 390px (day). fmt, clippy, 27 tests pass.

Co-Authored-By: lazytrek 352825308+lazytrek@users.noreply.github.com

Pages are at most 50rem (800px) wide, centred; the day page allows
75rem (1200px) for the photo. The photo's per-screen-size widths are
replaced by the column, and its max height drops from 85vh to 70vh so
the hints stay in view under landscape photos. Phones are unchanged.

Co-Authored-By: lazytrek <352825308+lazytrek@users.noreply.github.com>
@coko7
coko7 merged commit c8190b4 into main Nov 29, 2026
2 checks passed
@coko7
coko7 deleted the feat/centered-layout branch November 29, 2026 17:15
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