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 Block rendered image in the editor doesn't match the rendered image on the frontend #2872

Open
inaikem opened this issue Dec 1, 2020 · 0 comments
Labels
[Type] Bug Something isn't working

Comments

@inaikem
Copy link

inaikem commented Dec 1, 2020

This issue is similar WordPress / gutenberg issues #24970, #12914 and #12277 .

Steps to replicate

A Simple site with Image blocks nested in a Columns block. Each image has been manually set to be the approximately the same height, and this is reflected in the editor just fine:

Editor page:

Direct link.

However, the preview/live page is another story:

Public view:

Direct link.

I provided CSS to fix the issue for this specific size of images (see below), and let them know the affected image (right above), is appearing on their site as part of the Stow theme's demo content and should be replaced.

As @sirreal pointed out in the Slack thread noted below, this line breaks their layout:

themes/stow/style.css

Lines 1789 to 1793 in 0100e61

img {
height: auto;
max-width: 100%;
vertical-align: middle;
}

CSS:

/* Define fixed height for homepage 3-column block | 3529919-ZD MK */
.home .has-3-columns .wp-block-image img {
    height: 225px;
}
  • User report: [#3529919-ZD]
  • Slack thread-up ticket: p1606729756267500-slack-good-mountain
@simison simison added the [Type] Bug Something isn't working label Jan 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants