Repository navigation
Replies: 1 comment 1 reply
|
I've noticed this myself when I'm in the app, but never found the energy to tackle it, so this is very welcome :) Thanks for such a careful survey. I checked your numbers against the CSS and they hold: every max-width in your list, the h1 sizes, and the doubled indent on phones. One thing to add: the page-specific h1 sizes are more specific than the global phone rule ( None of it is deliberate. Each page got its own spacing before
Two things to keep as they are:
If you'd like to take it on, two PRs would be easiest to review: one for the spacing and h1 sizes, one for the widths. Screenshots at 390px and 1440px like the ones here would be perfect. Thank you! |
Uh oh!
There was an error while loading. Please reload this page.
Moving between pages in the main menu, I noticed the page title jumps around: it starts at a different height, sometimes a different indent, and in a different size on almost every page. I was curious how big the differences actually are, so I laid out each page's wrapper and h1 with the app's own CSS and measured where the title lands, relative to
.main-content:From what I can see in the CSS, it comes from each page adding its own spacing and sizes on top of what
.main-contentand the globalh1already give:The cellar subpages already avoid this with
CellarPageHeader, so I wondered whether the same idea would make sense for the top-level pages, or whether some of the differences are intentional. A few things I wasn't sure about:A shared component, or a simple convention?
CellarPageHeadergives every cellar subpage the same block: a back link, the title, a subtitle line that keeps its space even when empty, and an optional slot for buttons on the right. Most top-level pages have a similar shape: a title, often a short subtitle, sometimes a button (New request, Share card, Ask a question). There is also an existing global.page-headerclass, but only the sommelier and admin pages use it. A lighter option might be a convention instead of a component: page wrappers leave the outer spacing to.main-content, and the h1 keeps the global size (1.75rem, 1.4rem on phones). Today 14 of the 19 pages override one or both.Is one width per page deliberate? Right now there are about nine different max-widths:
Some of that clearly follows the content (a settings form vs. a statistics grid). I wondered whether three widths, for example narrow ~720px, default ~900px and wide ~1200px, would cover all of them. The left edge would then only move between those three.
Are Blog and Help meant to stand out? They have the largest headings, and both sit lower on the page (2rem of extra top padding):
font-family: 'Playfair Display'directly instead of using--font-heading, which is otherwise the same font.That could well be a deliberate "editorial" look for content pages, in which case it would make sense to keep them as an exception and only align the rest.
Curious what you think. Happy to help with it if that's useful, but no expectations.
All reactions