Onebox image aspect ratio squashing images

Version: 3.1.0.beta3

Has something changed with the Onebox image aspect ratio?

Images are squashed to one side now, is there a fix I can do in the theme or is it something else?

Thanks in advance

Hi :slight_smile:

Can you share a screenshot, or better, a link to a post that shows this issue?

1 Like

I can do both

The image is stretched on your website, not on Discourse: Goph's Bloody Piña Colada Ice Cream - gopher_byrd

The onebox on Discourse keeps the original ratio (which is the correct one) and isn’t stretched.

You may want to fix this on your website (not Discourse) by replacing

.recipe-details img {
    width: 100%;
    max-height: 300px;
}

with

.recipe-details img {
    width: auto;
    max-height: 300px;
}
3 Likes

Thank you, I’ll take a look

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.