-
Notifications
You must be signed in to change notification settings - Fork 45
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
Homepage Posts: fix column spacing and add control #1245
Conversation
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.
Looking much better, and the new column gap feature works great. 👍
Thanks @dkoo! 🙌 |
🎉 This PR is included in version 1.57.0-alpha.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
# [1.57.0](v1.56.0...v1.57.0) (2022-09-14) ### Bug Fixes * add button block class to the Homepage Posts more button ([#1252](#1252)) ([c4d565c](c4d565c)) * correct Donate thank you message alignment ([#1258](#1258)) ([e838e61](e838e61)) * disambiguate users and guest authors in Author List exclusions ([#1154](#1154)) ([c59056b](c59056b)) * **donate:** default value not below minimum donation ([#1248](#1248)) ([368e856](368e856)) * **donate:** use first & last name as default name ([#1255](#1255)) ([105d95b](105d95b)) * re-add excerpt length preview in editor ([#1247](#1247)) ([bdbe86e](bdbe86e)) * update Homepage Posts grid spacing and add control ([#1245](#1245)) ([9fa6972](9fa6972)) ### Features * handle minimum donation option in Donate block ([#1239](#1239)) ([10dfefe](10dfefe)) * if donation via a prompt, add prompt ID to Stripe payment metadata ([#1253](#1253)) ([b8cb0e9](b8cb0e9))
🎉 This PR is included in version 1.57.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
All Submissions:
Changes proposed in this Pull Request:
This PR tackles a couple changes to how the column spacing works with the Homepage Posts block:
justify-content: space-between
; this PR updates the default gap to be 32px to match the columns block; it also adds an option to reduce the gap if needed (Homepage Posts: Inconsistency with Columns block when using the grid style #638).Closes #1233, #1213 and #638.
How to test the changes in this Pull Request:
Example Homepage Posts blocks
Note how the last post in each row of block with borders wraps to a new line in editor:
Publish the page and view on the front end -- note that the posts don't quite fill all of the horizontal space, and that the borders are not evenly spaced:
Columns:
Homepage Posts Block settings:
npm run build
.Columns:
Homepage Posts with grid setting:
Large
Medium
Small
Note: The 'image behind' placement, grid layout and border style don't work together, with or without this PR. I've filed a separate issue for this (#1246).
Other information: