Jump to content
Pro Wrestling Only

Images exceed device width on mobile


Ronnie

Recommended Posts

Hi! I've popped back casually after a few years away and noticed the upgrade. One thing isn't quite right though. On mobile, images break the natural page width:

It seems to me that the cause is the addition of

.cPost div[data-role="commentContent"] img.ipsImage_thumbnailed{max-width:1000px;max-height:750px;}

to your framework.css. That's saying that if your image is larger than 1000px wide, then reduce it to that width, which is what is happening. However, it's taking priority over another rule which says do not allow an image to be wider than the page width.

I don't know what this rule was added for but it's clearly problematic. (And not the correct approach to take; changes should be made in custom.css. The stock CSS files will either be overwritten in future upgrades (meaning that you lose your changes) or not overwritten (meaning that changes that are part of upgrades won't be introduced) -- the jury's out as to which of the two approaches apply here!)

You need to get rid of this rule as it stands because of the knock-on problems it's causing but there'll be an alternative way of doing what you intended. What is it you were trying to achieve by adding this rule?

Link to comment
Share on other sites

  • 1 month later...

Hey, I'm looking into this and trying to get it resolved. Sorry for the delay. What does this actually look like on your phone? Do you have a screenshot? This was a default setting that happened with the upgrade, not actually something we manually changed.

Link to comment
Share on other sites

  • 2 weeks later...
On 4/13/2019 at 10:43 PM, Charles (Loss) said:

Do you have a screenshot?

Screenshot_20190424-145535.png

To read, it's necessary to scroll horizontally, so this  happens:

Screenshot_20190424-145549.png

On 4/13/2019 at 10:43 PM, Charles (Loss) said:

This was a default setting that happened with the upgrade, not actually something we manually changed.

You'll be in the clear whenever you upgrade, then; there's no sign of that line in the latest versions' framework.css :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...