-
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
Media & text block: Placeholder buttons has the wrong size #61812
Comments
Hey I'm new at this, which files am I supposed to make changes to? |
I believe this is related to #59275 and is the intended change. If the placeholder itself is narrow, the buttons will be stacked vertically. So if you change the Media & Text block to wide or full width and the placeholder size increases, the buttons will line up horizontally. On the other hand, if you change to the mobile viewport in other blocks, the buttons should be stacked vertically. |
Hi @carolinan, I am not sure if this is related to exactly media and text, because we have used the common media placeholder for all this to render as a placeholder. I do had checked the code and found that the button size depends on the width of the container on which these buttons are being show. Here is the reference, gutenberg/packages/components/src/placeholder/index.tsx Lines 64 to 67 in 7674a57
Based on this, since the media and text block tends to use the once side media and another side text, the placeholder container width falls in medium and small range, we can see that it is made to add it gutenberg/packages/components/src/placeholder/style.scss Lines 109 to 125 in 7674a57
In this case, let us say that, if the
So I am not sure, if the issue should be valid for this case. Thank You. |
Sorry @t-hamano, I guess I was adding the reply for this issue with the pointers you mentioned and did not check that you already replied for it. I need to just hit the comment button 😄. |
I think it looks bad, but let's close this then. |
Description
When you place a media & text block, before selecting a media, there is a placeholder with three buttons.
With Gutenberg active, there is an unexpected change in the styling of the buttons, which are wider than in other placeholders.
Step-by-step reproduction instructions
Activate Gutenberg.
Add a media & text block.
Screenshots, screen recording, code snippet
With Gutenberg active:

Expected:

Image block placeholder for comparison:

Cover block for comparison:

Environment info
No response
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: