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

Image breaks out of container in meta box #1

Open
wpmark opened this issue Oct 5, 2022 · 0 comments
Open

Image breaks out of container in meta box #1

wpmark opened this issue Oct 5, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@wpmark
Copy link
Member

wpmark commented Oct 5, 2022

When a user is using the Classic Editor, the generated image in the Social Image meta box breaks out of its container. This is because max-width: 100%; is not being set which when the block editor is used is added with the following:

.block-editor__container img {
    max-width: 100%;
    height: auto;
}

The solution here is to add max-width: 100%; to the img.ssi-image rule in hd-ssi-admin.css.

ssi-image-breakout-issue

@wpmark wpmark self-assigned this Oct 5, 2022
@wpmark wpmark added the bug Something isn't working label Oct 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant