News:

Wondering if this will always be free?  See why free is better.

Main Menu

SMF 2.1 Images out of proportion

Started by @rjen, January 17, 2016, 06:14:24 AM

Previous topic - Next topic

@rjen

Maybe not a bug, but an improvement opportunity.

I ran into the same issue with the responsive curve mod on 2.0.11 and just noticed that 2.1 has the same issue.  In responsive mode (smaller screens) images are taken out of proportion due to the current index.css settings (see attached examples) .


.bbc_img, .atc_img {
border: 0;
max-width: 100%;
}


With this the original image (attachment 1) is squashed on small screens (attachment 2)

Should be extended to:

.bbc_img, .atc_img {
border: 0;
max-width: 100%;
height: auto;
}


This way the images keep their original aspect  ratio at all times... (attachment 3)
Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl


Advertisement: