-
Notifications
You must be signed in to change notification settings - Fork 65
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
Image Block: Target only smaller screen sizes for image block fix #1109
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
laurelfulford
added
the
[Status] Needs Review
The issue or pull request needs to be reviewed
label
Oct 14, 2020
adekbadek
approved these changes
Oct 20, 2020
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.
👐
github-actions
bot
added
[Status] Approved
The pull request has been reviewed and is ready to merge
and removed
[Status] Needs Review
The issue or pull request needs to be reviewed
labels
Oct 20, 2020
🎉 |
matticbot
pushed a commit
that referenced
this pull request
Oct 20, 2020
# [1.21.0-alpha.1](v1.20.2...v1.21.0-alpha.1) (2020-10-20) ### Bug Fixes * correct dropdown colors for Newspack Katharine ([#1110](#1110)) ([01ee559](01ee559)) * correct dropdown colors for Newspack Sacha ([#1111](#1111)) ([3748d6f](3748d6f)) * make pullquote citations inherit correct color ([#1116](#1116)) ([f537fd6](f537fd6)) * make sure accent header in the editor matches the front end ([#1112](#1112)) ([11e4970](11e4970)) * prevent captions from getting cut off with image-beside setting ([#1113](#1113)) ([2d779a8](2d779a8)) * target only smaller screen sizes for image block caption fix ([#1109](#1109)) ([0f8a7bc](0f8a7bc)) ### Features * add option to turn off Yoast's primary category functionality ([#1104](#1104)) ([95083c7](95083c7))
🎉 This PR is included in version 1.21.0-alpha.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
matticbot
pushed a commit
that referenced
this pull request
Oct 20, 2020
# [1.21.0](v1.20.2...v1.21.0) (2020-10-20) ### Bug Fixes * correct dropdown colors for Newspack Katharine ([#1110](#1110)) ([01ee559](01ee559)) * correct dropdown colors for Newspack Sacha ([#1111](#1111)) ([3748d6f](3748d6f)) * make pullquote citations inherit correct color ([#1116](#1116)) ([f537fd6](f537fd6)) * make sure accent header in the editor matches the front end ([#1112](#1112)) ([11e4970](11e4970)) * prevent captions from getting cut off with image-beside setting ([#1113](#1113)) ([2d779a8](2d779a8)) * target only smaller screen sizes for image block caption fix ([#1109](#1109)) ([0f8a7bc](0f8a7bc)) ### Features * add option to turn off Yoast's primary category functionality ([#1104](#1104)) ([95083c7](95083c7))
🎉 This PR is included in version 1.21.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
released on @alpha
released
[Status] Approved
The pull request has been reviewed and is ready to merge
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
All Submissions:
Changes proposed in this Pull Request:
This PR fixes issues introduced in #1058 -- those changes were intended to fix visual issues in mobile Safari (gaps between images and their captions), but they are causing some visual issues on desktop with smaller images. Since the original issue only occurs on smaller screens, the best approach seems to be to target those smaller screen sizes win the original fix.
Closes #1065
How to test the changes in this Pull Request:
Centre-aligned with AMP and caption:
Centre-aligned without AMP:
Left aligned with caption (is flush-left with AMP disabled):
Right aligned with caption (is flush-left with AMP disabled):
npm run build
.Centred image with caption:
Left-aligned image with caption:
Right-aligned image with caption:
Note: There will still be some minor issues with small centred images -- the captions will extend past the edges of the image. I think this is a fair trade off, as that exact issue hasn't been reported yet with the current version of the fix in place, and it will be less likely to happen (since on smaller screen sizes you'd need a dang tiny image to notice it):
One work around would be to centre the caption text in that case, but I think, since it would look out of place unless the original image was quite small -- it's best to leave it left aligned.
Other information: