-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Post settings: Featured Image preview is too small #33838
Post settings: Featured Image preview is too small #33838
Conversation
👋 Thanks for your first Pull Request and for helping build the future of Gutenberg and WordPress, @gavande1! In case you missed it, we'd love to have you join us in our Slack community, where we hold regularly weekly meetings open to anyone to coordinate with each other. If you want to learn more about WordPress development in general, check out the Core Handbook full of helpful information. |
@ntsekouras, can you advise us whether this change seems good? In my POV, |
Thanks for your contribution @gavande1 and for the ping @cpapazoglou ! IMO featured image preview shouldn't create any expectations to a user, as the final display(front-end) is handled by the theme and could be of any size/aspect-ratio etc... For example we could apply a change to show full image, but the theme displays only thumbnails 😄 . By seeing the current code in trunk, this feels okay to me, but would like another opinion from @mcsf or @gziolo maybe 😄 ? |
Maybe we should use Featured Image will use the full-size image if the first two options aren't available. gutenberg/packages/editor/src/components/post-featured-image/index.js Lines 91 to 96 in 9763378
|
We could use the |
I wanted to clarify that with the above I meant that I think the code in
Letting users have control in these sizes is the purpose of the existence and appliance of these filters, no? Why override them with something opinionated? As I said the preview is not representative to the end result, the theme is and the way I see it is better to load a smaller image, which is just a preview of the image to help a user recognize what image they have set. |
Description
By default, the featured image preview uses the post-thumbnail version of an image. In Gutenberg, the featured image component first tries to use that value and otherwise uses the fallback value of the thumbnail. This PR aims to use the full version image instead of using the thumbnail version of the featured post image as a fallback.
Fixes: #33837
How has this been tested?
Screenshots
Before / After
Types of changes
Enhancement
Checklist:
*.native.js
files for terms that need renaming or removal).