Query loop block (4 column grid) - CSS width calc issue (Firefox) #50153
Labels
[Block] Post Template
Affects the Post Template Block
[Block] Query Loop
Affects the Query Loop Block
[Type] Bug
An existing feature does not function as intended
Description
When I have 4 columns in the query loop block, at certain screen sizes the last column breaks down onto the next line.
This only happens on Firefox as far as I know (works on Chrome).
I think it has something to do with this CSS:
@media (min-width: 600px) {
.wp-block-post-template.is-flex-container.is-flex-container.columns-4 > li {
width: calc(25% - .9375em);
}
}
Changing it to this fixes the issue:
@media (min-width: 600px) {
.wp-block-post-template.is-flex-container.is-flex-container.columns-4 > li {
width: calc(24.99% - .9375em);
}
}
Step-by-step reproduction instructions
Using version 6.2. Not using Gutenberg plugin. Firefox.
See screenshots for everything you should need to replicate the layout.
Screenshots, screen recording, code snippet
Environment info
WordPress 6.2
Firefox
Mac
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: