v17development / flarum-blog

The Flarum Blog extension
https://discuss.flarum.org/d/25392-blog-adds-a-blog-section-to-your-community
MIT License
46 stars 20 forks source link

Images get cropped (too much) on blog articles #163

Open therealmaxmoon opened 1 year ago

therealmaxmoon commented 1 year ago

The main image of a blog article gets cropped too much so important information are missing.

This is how the image in a blog article looks like (link to the blog):

image

And this is the original image: original

The first part of the sentence is missing completely and the logo was cut in half.

My temporary fix

I've created custom css, which can be added in the admin panel -> Appearance -> Custom Styles:

.FlarumBlog-Article-Image {
    background-size: contain !important;
}

image

It might not be the best, but I wanted to share it here if others need this fix quickly.