#46999 closed defect (bug) (fixed)
Twenty Nineteen: Responsive Columns broken in WordPress 5.2 Beta
Reported by: | dianeco | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 5.2 | Priority: | normal |
Severity: | normal | Version: | 5.2 |
Component: | Bundled Theme | Keywords: | has-patch |
Focuses: | Cc: |
Description
WordPress 5.2 introduces a 2 columns breakpoint on small devices https://github.com/WordPress/gutenberg/pull/12816 but it doesn't work on Twenty Nineteen.
On 768px devices, the columns don't wrap in rows of 2 and the gutter isn't the same between each column.
Moreover, is it intended to have a gutter of 54px (32px set by the columns block + 1rem added by the theme) on large devices? By defaut Gutenberg set the value to 32px which is better for the content (especially on tablets), maybe it's not necessary to add 1 rem:
@media only screen and (min-width: 768px) { .entry .entry-content .wp-block-columns[class*='has-'] > * { margin-right: 1rem; } }
Attachments (1)
Change History (9)
#2
@
5 years ago
Note: I've worked on a broader fix in #46643 that also happens to fix this bug. I'd recommend merging that instead of 46999.patch, since the other issue also improves on a number of other column inconsistencies.
#3
@
5 years ago
- Owner set to SergeyBiryukov
- Resolution set to fixed
- Status changed from new to closed
In 45264:
#5
follow-up:
↓ 6
@
5 years ago
The patch works well, except the full columns are now broken because it removes the side padding.
#6
in reply to:
↑ 5
@
5 years ago
Replying to dianeco:
The patch works well, except the full columns are now broken because it removes the side padding.
@dianeco Would you mind sharing a screenshot? Thanks!
Thanks for the report, @dianeco. I've attached a patch that should fix this.
Before (768px):
After (768px):
While I was in there, I noticed that margin was also inconsistent between 783–800px. I've included a small change to fix that as well.
Before (785px):
After (785px):
You're right, this is no longer needed. It was originally added to more closely mimic the extra space that was included in the editor, but that extra space has since been removed there. I'm going to address this as part of #46643. 👍