redsteel

Increase the width of message column - redsteel

Increase the width of message column

by neoneuf » Mon Dec 20, 2010 9:04 pm

Hi,
I'm using Red Steel for phpBB 3.0.8. Thanks for this very nice style.
I'd like to expand the width of the messages so as images with 1024 pixels width included in the messages will not be truncated.
Could you please tell me what do I have to modify and in which file ?
Thank you.
neoneuf
Registered User
Posts: 11
Joined: Mon Dec 20, 2010 6:17 pm
Contact:

Re: Increase the width of message column

by Steve » Tue Dec 21, 2010 1:04 pm

Are these uploaded attatchments?
If so you can correct in admin control panel > Attachment settings > Image category settings -
Display images inline: yes
Create thumbnail: yes
Maximum thumbnail width in pixel: = upto you
User avatar
Steve
Registered User
Posts: 1024
Joined: Tue Apr 07, 2009 7:48 pm
Location: UK ,up north!!
Name: Steven Clark
Contact:

Re: Increase the width of message column

by neoneuf » Tue Dec 21, 2010 3:52 pm

no, they are web links to images located elsewhere...
neoneuf
Registered User
Posts: 11
Joined: Mon Dec 20, 2010 6:17 pm
Contact:

Re: Increase the width of message column

by Steve » Tue Dec 21, 2010 4:06 pm

Can you give me a link to a topic or post where this happens please.
User avatar
Steve
Registered User
Posts: 1024
Joined: Tue Apr 07, 2009 7:48 pm
Location: UK ,up north!!
Name: Steven Clark
Contact:

Re: Increase the width of message column

by neoneuf » Tue Dec 21, 2010 4:30 pm

neoneuf
Registered User
Posts: 11
Joined: Mon Dec 20, 2010 6:17 pm
Contact:

Re: Increase the width of message column

by Steve » Tue Dec 21, 2010 5:24 pm

Is this just using the [img] tags yes?

If so Open: styles/redsteel/theme/common.css

find:

Code: Select all

img {

add after on new line:

Code: Select all

   max-width: 100%;

Refresh the theme.

// EDIT also you will find a blank logo in the contrib folder with in the style folder ;)
User avatar
Steve
Registered User
Posts: 1024
Joined: Tue Apr 07, 2009 7:48 pm
Location: UK ,up north!!
Name: Steven Clark
Contact:

Re: Increase the width of message column

by neoneuf » Tue Dec 21, 2010 5:48 pm

Thanks. It works but it is not exacly what I was looking for as it has resized the pic which makes the text contained in the pic less readable than in 100% size. There is no way to increase the size of the message width so as pics with 1024 pixels width will be displayed without been resized ?
Thanks for the blank logo :P
neoneuf
Registered User
Posts: 11
Joined: Mon Dec 20, 2010 6:17 pm
Contact:

Re: Increase the width of message column

by Steve » Tue Dec 21, 2010 5:55 pm

Same file common.css adjust the max-width but will have a bad effect on a user with a small screen ;)

Code: Select all

   min-width: 650px;
        max-width: 1150px;


No problem about blank logo :)
User avatar
Steve
Registered User
Posts: 1024
Joined: Tue Apr 07, 2009 7:48 pm
Location: UK ,up north!!
Name: Steven Clark
Contact:

Re: Increase the width of message column

by neoneuf » Tue Dec 21, 2010 6:21 pm

Thanks but it doesn't work.
However you helped me finding the exact solution I was looking for.
Actually I left the img at 100% as you suggested and make the second change you suggested in #wrap
I used there

Code: Select all

max-width: 1380px;


and it works like a charm. Furthermore, if the screen is big enought then the pic is displayed at 100% size, else it is resized. Perfect. Thanks again :P .
neoneuf
Registered User
Posts: 11
Joined: Mon Dec 20, 2010 6:17 pm
Contact: