Repository navigation
feat(layout): keep content in a centred column on wide screens - #10
Merged
Merged
Conversation
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>
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.
What
bodyis at most 50rem (800px) wide, centred, with 8px side padding. That's the same as the default margin, so phones look exactly as before.body.wide) allows 75rem (1200px), so the photo stays big.max-widthbreakpoints (600/800/1200/1600px) are removed; the column now limits its width.max-heightgoes 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