-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Featured image block has no size selector in Site Editor #45842
Comments
Confirmed that differences exist between the different environments. There are also differences depending on whether the Featured Image block is inside a Query block, but only in the Site Editor.
|
Thanks for confirming. It would be great if we can control the appearance of these settings in theme.json, instead of predefined rules (that are inconsistent). It is currently not possible to only give user control of preset image-sizes (and remove custom height / width). This is a much needed feature, because incorrect sized images destroys layouts and site performance. |
This part seems to be related to the "Image Sizes" option not appearing. gutenberg/packages/block-library/src/post-featured-image/edit.js Lines 82 to 89 in e291564
The image size option list is generated using the available sizes for the media object being rendered in the editor. As single templates don't show any image (there's no I am not sure if this is intended; I agree it would be helpful to allow this kind of setting even when no image is being rendered. |
The scale settings only shows if the height of the image is adjusted. I think showing and hiding the scale settings this way is confusing and could perhaps be improved by a help text below the height and with setting? |
I have tried to solve the image size issue in #46848, it could use a sanity check to see if I understood the logic correctly because there are so many conditions. |
Description
Recently I was happy to find that the featured image can finally be supplied with a preset image size.
However, this is only possible in the page-editor views, and not in the site / template editor. This defeats the whole purpose of setting featured image sizes for templates.
This is a major gripe as a featured image is probably the most-used block for singles, and having to resort to classic templates or custom blocks to just set image size (an age old WP standard feature) is really not the way we want to go, but reality for 2 years now.
The way it works now is you have to set all the image sizes for each single template by hand in the actual post. How is this a good idea for sites with 100 singles?
I can't just let clients have their way with images without setting a size. It creates uncontrollable design problems.
Also, when site editor and page editor have such discrepancies in how they deal with the same blocks, we create a bad UX where expectancy of how things work is constantly defied by the editor 'doing it differently, or restricting certain options for no apparent reason'.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
No response
Environment info
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: