cnb / News_Manager-getsimplecms

A blog/news plugin for GetSimple CMS - development extended version
8 stars 10 forks source link

post image for individual posts isn't constrained #265

Closed noctividus closed 7 years ago

noctividus commented 7 years ago

When a post has a featured image, that image is not constrained to any size. Therefore, it over-runs its div.

Example: http://richmayfield.com/offthegrid/post/social-pool

cnb commented 7 years ago

I don't get it. I can't find any featured image in your example post.

cnb commented 7 years ago

You can set a custom post image size for the single post view in Custom Settings, for example:

single imageSize 400 300

or if you want the original image in single posts:

single imageSize full
noctividus commented 7 years ago

Thanks for the quick reply. I removed that featured image, but the same happens with an unconstrained image. Like, if you insert an image, then it just makes itself whatever size. For my application, I added the following to my theme's main CSS. However, this may be some CSS that could be adapted for your plugin to make it work a little better. `/News Manager Additions/

/ This style makes the images correctly scaled on the main blog page / .nm_post_image img { max-width: 60%; } / This style makes un-dimensioned images stay a good size in posts / .nm_post_content img { max-width: 80%; }`

noctividus commented 7 years ago

The problem with setting size with pixels, is that it isn't responsive

cnb commented 7 years ago

Thank you for the suggestion, but I think it's up to the site or theme developer to 1) choose full-size or re-scaled featured images, and/or 2) add CSS (or any framework classes) to make them responsive.