Canapin
(Coin-coin le Canapin)
February 24, 2023, 3:03pm
1
Install this theme component
This very simple theme component has a single setting that defines your forum’s width.
The width can’t exceed your window’s width or be less than the default Discourse’s max width of 1110px.
Example width a 1400px width:
7 Likes
daemon
(Alex)
February 24, 2023, 3:17pm
2
Hi!
Why only fixed width with px?
I have this in my css:
:root {
--d-max-width: 80%;
}
.topic-body {
width: 90%;
}
#reply-control {
max-width: 80%;
}
.body-page {
width: 100%;
max-width: 100%;
}
3 Likes
Canapin
(Coin-coin le Canapin)
February 24, 2023, 3:34pm
3
This is a good idea to allow other units, but in this case, I wouldn’t know how to prevent users from setting a value too low that would break the layout.
I’m open to any ideas and PR
2 Likes
Is this theme component related in any shape or form to the light full-width theme?
daemon
(Alex)
February 24, 2023, 4:08pm
5
That’s really good question but I think you have trust the users.
I would seperate the value from the unit and make a “if-else query” inside the css if they use px or % and then a second if inside to check the value if it’s to small.
if px
if value < 1100px
set value 1100
else
set value to variable
else if %
if value < 50 %
set value 50%
else
set value to variable
I’m honest that I don’t know atm if this is possible in a css file.
2 Likes
Canapin
(Coin-coin le Canapin)
February 24, 2023, 4:19pm
6
It isn’t. Do you have a link to this theme? I couldn’t find it
2 Likes
daemon
(Alex)
February 24, 2023, 4:49pm
7
I would love to have “light full-width”, too.
Can please someone from the @team release the css for it?
2 Likes
Can’t find it either, I think this theme is exclusive to this forum.
1 Like
Canapin
(Coin-coin le Canapin)
February 24, 2023, 9:41pm
9
I saw the theme you’re talking about. Yes, it looks like each other and I could also add a setting to set the width of the content as well.
To make the theme component more unique, I could set the fields in the user’s settings so everyone could have their own preferred width.
2 Likes
I’ve been looking for that answer myself!
@sam @Falco any idea where we can find info on how to do the light and dark full-width theme?
1 Like
Don
February 25, 2023, 9:03pm
11
5 Likes
Heliosurge
(Dan DeMontmorency)
March 18, 2023, 5:15pm
13
Found the same issue in the Op post in Multilingual plugin links seem broken.
1 Like