-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Open
Labels
[Block] Post Featured ImageAffects the Post Featured Image BlockAffects the Post Featured Image Block[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Description
Description
The featured image block uses a srcset and sets the height and width of the img tag to small default resolutions unless you explicitly enter them in the sidebar.
However on a theme that uses dynamic CSS widths this means that the thumbnail size is used for all featured images, even those blown up to cover the screen.
In the past the sizeSlug attribute would fix this, but it has no UI now and is erased on save.
Step-by-step reproduction instructions
- Add a featured image block
- Put it in a place that has a very large size
- view on the frontend and observe that while the block is now large, the image resolution is that of a tiny thumbnail scaled up and blurred
Screenshots, screen recording, code snippet
No response
Environment info
WordPress 6.2
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
[Block] Post Featured ImageAffects the Post Featured Image BlockAffects the Post Featured Image Block[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended