2.1 forum display width

Started by LandyVlad, Jul 22, 2021, 09:49 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

LandyVlad

I seems no matter what size PC screen is used, the forum only takes up the middle of the screen with HUGE margins on both sides. (using the background colour, or image if there is one)

example - this very smfhelper forum.

This contrasts with the 2.0 forums where the forum width adjust so it fits most of the screen,
example - https://gsx1400owners.org/forum/index.php?action=forum

Is this a feature / problem with 2.1 generally?
If so has it been noted on github?
Is there some other way to fix it?
 
I reject your reality, and substitute my own.

Bigguy

The setting for forum width was taken out a while back in 2.1 if I remember right. THere should be a mod lyin around to put it back in though if it has been updated. I here what you are saying though. It would be nice to have it auto-resize.

Skhilled

You need to adjust the code style in index.css, line: 1081.

#top_section .inner_wrap, #wrapper, #header, #footer .inner_wrap {
    max-width: 1200px;
    margin: 0 auto;
    width: 90%;

Adjust this part to your liking:
max-width: 1200px;

Bigguy


Hatshepsut

The mod is called "Forum width setting":

https://custom.simplemachines.org/mods/index.php?mod=4223

It works fine with default theme, but not sure to work with custom themes.

Bigguy

I installed it today. Might play around a bit later with it. :rgton

Bigguy

Changed the width on this site to 75% Looks good on my monitor.

lurkalot

Quote from: Bigguy on Jul 23, 2021, 11:34 AMChanged the width on this site to 75% Looks good on my monitor.

Seems pretty narrow on my laptop screen if I'm being honest. Maybe 90% would work better.

Bigguy


Bigguy

Hmmm...No, I don't think 90% will work. To much space to the right of everything really. 80% maybe...

lurkalot

Look better now on my laptop screen, sorta back to how it used to look.  Think it need some sort of max width setting so it doesn't go silly wide on big screens but also doesn't go too narrow on smaller device screens like tablets or notebooks / laptops etc.

Bigguy

I wonder if this effects mobile at all. Probably not.

lurkalot

Quote from: Bigguy on Jul 24, 2021, 05:20 AMI wonder if this effects mobile at all. Probably not.

Don't think it does, if I zoom in on my laptop browser (EDGE) everything switches to full width.  ;) 

LandyVlad

It's the look of the old forum width I'm after - less ├║ser shock' on transition to 2.1
I think that 2300px?

I reject your reality, and substitute my own.

Bigguy

I used % so not sure what that would be really.

Skhilled

Percent will work best on a wide variety of screens better than exact px.

lurkalot

Just noticed after the last update, the site width seems to have got narrow again on my laptop screen. Not sue if this setting got changed via the upgrade process, or if you have changed it.  Just a heads up anyway.  ;)

Bigguy

I have the forum width mod installed and set to 78% I think it is. Is that to narrow on your screen :???