-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Maintain a two-column layout on desktop screen sizes #8248
Comments
Snippets from #7966
Ideas: |
Approach 1
Approach 2
ReferenceOn shopify.dev:
|
Design proposal (approach 3)
Rationale
BeforeAfter |
@jesstelford & @gwyneplaine, please check out the suggestion above and let me know what you think. The outstanding question is regarding viewport height. How is that currently set? Any thoughts on how it should be set? Two observations on height related issues this far:
|
Site-wide padding change is a great option: Ticks most of the boxes with minimal effort 👍
On initial load, the iframe is resized to be 100% height of the rendered example. The height then stays the same until the page is reloaded. This means if you resize your browser, the height will not change to accomodate the new height of the example. There's also an edge case where if content is rendered after initial load (eg; clicking to open a modal, etc) which changes the height, the iframe will not be resized. We might be able to cook up something to detect changes to the page width and update the height as the browser is resized, however this wont fix the edge case where rendering after initial load changes the height. I'm not sure how to handle that 🤔 |
Moved height related issues to #8345 (backlog) |
@gwyneplaine - I see this moved into Ready for review, but there aren't changes on staging yet. Is #8338 the PR that adds the adjustments to left and right padding and TOC behaviour? |
Seems to be live on staging now 👍 These two fixes look great:
Another proposed change was to limit the max-width to ContextCurrently, the content width only surpasses |
Good catch! Fixed in #8399 |
Sorry that I didn't think ahead and make this clear earlier, but the width cap fix was intended for the "editorial" page type. That's where we come across the issues with line lengths and massive images. As is, #8399 also caps the width of index pages and "sell pages", which leads to ineffective use of space and some odd looks. Pages the width cap changes shouldn't apply to:
(I thiiink this is a complete list) 👇 Examples of pages that should use the available width (with whatever our current logic is)
|
Ah, ok, thanks for clarifying! Here's a PR with a fix: #8432 |
Yes, I think that's a good use of space in general. However, the tokens index switch to a table view from at >1400, so the four items per row is only effective between 1396px and 1400px. I don't see any big concerns with this, but I thought I'd call it out in case there's any messy breakpoints leading to that. |
Issue following the viewport discussion in #7966
Summary
The viewport height sometimes cause rendered elements to collapse vertically, which is uncommon in product and not good for demonstration purposesHeight related issues moved to #8345Eng tasks
The text was updated successfully, but these errors were encountered: