Jump to content

[CSS/Phone] bad image scaling in status update

givingtnt

Browser, version and OS: Screenshot_20201115-115450(1).thumb.png.db92009b14b6468fbb5ce1ede7fc9af0.png

 

Steps to reproduce/what were you doing before it happened?

open the page

 

 

What happened?

Scaling is funky on the image (stretched vertically)

 

What did you expect to happen?

No stretch

 

Link to a page where it happened, if applicable: https://linustechtips.com/profile/85015-givingtnt/?status=282152&type=status

 

Screenshots of the issue, if applicable: 

Screenshot_20201115-115258.thumb.png.6867120e84c8bd516d1d942425632792.png

Any other relevant details:

 

 

If it's a cloudflare error, what was the ray ID from the bottom of the error page?

~New~  BoomBerryPi project !  ~New~


new build log : http://linustechtips.com/main/topic/533392-build-log-the-scrap-simulator-x/?p=7078757 (5 screen flight sim for 620$ CAD)LTT Web Challenge is back ! go here  :  http://linustechtips.com/main/topic/448184-ltt-web-challenge-3-v21/#entry601004

Link to comment
Share on other sites

Link to post
Share on other sites

I think that image was copied from another site, which carried with it a fixed height. Images uploaded to the forum directly shouldn't experience that.

HTTP/2 203

Link to comment
Share on other sites

Link to post
Share on other sites

It's the result of a static size where only the width is scaled. Overriding the hight to auto to ignore its static value should fix it without affecting anything else as far as I can tell.

.ipsType_richText img {
	max-width: 100%;
	height: auto !important;
}

 

Default values for reference

Spoiler

<img alt="Heart's Monitor | Awkward yeti, Heart and brain comic, Funny jokes" data-ratio="100.00" style="height:720px;width:720px;margin:0px;" data-src="https://i.pinimg.com/originals/99/19/6c/99196c175e71d9c883a0f62d599a2e5e.jpg" src="https://i.pinimg.com/originals/99/19/6c/99196c175e71d9c883a0f62d599a2e5e.jpg" class="ipsImage_thumbnailed" data-loaded="true" width="720">

.ipsType_richText img {
	max-width: 100%;
}

 

 

 

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×