Skip to content
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 Featured Image: Placeholder can't be smaller than 48px width and height #56656

Open
iamtakashi opened this issue Nov 29, 2023 · 0 comments
Labels
[Block] Post Featured Image Affects the Post Featured Image Block [Type] Bug An existing feature does not function as intended

Comments

@iamtakashi
Copy link

Description

The placeholder for the featured image cannot be smaller than 48px in width and height. It should allow it to be smaller than that.

I was working on a theme with small featured images. I wanted it to be a square of 42px, but there seemed to be CSS that specifies the minimum height and width in the editor. This causes a discrepancy between the actual featured image and the placeholder.

Step-by-step reproduction instructions

  1. Go to the editor
  2. Place a query loop block with a featured image
  3. Change the size of the featured image to, say, 42px square.
  4. The placeholder stays 48px square.

Screenshots, screen recording, code snippet

Screenshot 2023-11-29 at 18 59 17

Screenshot 2023-11-29 at 18 57 48

Environment info

WP 6.4.1
Gutenberg Trunk
Chrome Mac

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

@iamtakashi iamtakashi added the [Type] Bug An existing feature does not function as intended label Nov 29, 2023
@jordesign jordesign added the [Block] Post Featured Image Affects the Post Featured Image Block label Nov 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Post Featured Image Affects the Post Featured Image Block [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

2 participants