Advertisement:

Author Topic: Post Resize  (Read 464 times)

Offline silber112

  • Jr. Member
  • **
  • Posts: 268
Post Resize
« on: December 20, 2017, 11:02:58 AM »
Hello  :D

I have a little issue with the display of content in the post area. I have tried the default theme and a custom responsive theme but the issue remains..

When someone posts a image thats to big for the display it should resize, but instead it doesnt and you have to scroll to the sidess.. Happends a lot for users that use mobile phones..

How it looks in my forum: https://i.imgur.com/3fB8JW2.jpg
How it should look: https://i.imgur.com/iMYKOMz.jpg

Can I add some code somewhere to resize the content in the post area depending on the device?

Thanks  :D

Online Gwenwyfar

  • Customizer
  • Sr. Member
  • *
  • Posts: 851
  • Gender: Female
    • Gwenwyfar on GitHub
Re: Post Resize
« Reply #1 on: December 20, 2017, 11:12:42 AM »
You can add this to your index.css:

Code: [Select]
.post_wrapper img {
max-width: 100%;
}


Edit: Changed class to include signatures.

Offline silber112

  • Jr. Member
  • **
  • Posts: 268
Re: Post Resize
« Reply #2 on: December 20, 2017, 12:28:33 PM »
You can add this to your index.css:

Code: [Select]
.post_wrapper img {
max-width: 100%;
}


Edit: Changed class to include signatures.


Works great!  ;D

Do you know how to avoid that same issue in the log in form?
I attach a picture :)
Thanks

Online Gwenwyfar

  • Customizer
  • Sr. Member
  • *
  • Posts: 851
  • Gender: Female
    • Gwenwyfar on GitHub
Re: Post Resize
« Reply #3 on: December 20, 2017, 02:02:19 PM »
:)

You should direct that problem to the author of your theme.

Offline skb

  • Charter Member
  • Jr. Member
  • *
  • Posts: 225
    • Metabolically Challenged
Re: Post Resize
« Reply #4 on: December 20, 2017, 03:12:02 PM »
This won’t work for video attachment ?
Learning, every day.
Forum - The Diabetic Pub
Because every diabetic needs help
SMF 2.0.15 (default theme) / TP 1.2R3

Offline silber112

  • Jr. Member
  • **
  • Posts: 268
Re: Post Resize
« Reply #5 on: December 20, 2017, 05:52:48 PM »
:)

You should direct that problem to the author of your theme.

It Happens with The curve theme Too :(

Online Gwenwyfar

  • Customizer
  • Sr. Member
  • *
  • Posts: 851
  • Gender: Female
    • Gwenwyfar on GitHub
Re: Post Resize
« Reply #6 on: December 20, 2017, 05:56:27 PM »
This won’t work for video attachment ?
?

It Happens with The curve theme Too :(
With the Responsive Curve mod?

Offline silber112

  • Jr. Member
  • **
  • Posts: 268
Re: Post Resize
« Reply #7 on: December 20, 2017, 07:32:53 PM »
Just fixed it myself :)