-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Fix grid layout padding on small screens #64878
Conversation
Size Change: +4 B (0%) Total Size: 1.77 MB
ℹ️ View Unchanged
|
@@ -163,3 +163,11 @@ | |||
.dataviews-view-grid__card.is-selected .dataviews-selection-checkbox { | |||
top: $grid-unit-10; | |||
} | |||
|
|||
/* stylelint-disable-next-line scss/at-rule-no-unknown -- '@container' not globally permitted */ | |||
@container (max-width: 430px) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR as a whole works for me. But this is new! I wonder:
- Should we have a system for these widths? Some variables we define and then use, just like we have modal preset sizes, so arbitrary fix-widths don't propogate?
- Do we need a fallback? Support is generally good, so probably not, but worth pondering.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Potentially yes. Another approach would be to restructure the Page
component a bit so that the behavior is built into the region that displays page content, with props to disable. That is a bigger discussion.
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Co-authored-by: jameskoster <jameskoster@git.wordpress.org> Co-authored-by: jasmussen <joen@git.wordpress.org>
I just cherry-picked this PR to the wp/6.7 branch to get it included in the next release: a851bd2 |
Some of the recent refactoring seems to have caused a regression in grid layout; the padding no longer adapts at certain breakpoints. This PR addresses that by moving the relevant styles to the appropriate file.
Testing Instructions