Canapin
(Coin-coin le Canapin)
24 فبراير 2023، 3:03م
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 إعجابات
daemon
(Alex)
24 فبراير 2023، 3:17م
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 إعجابات
Canapin
(Coin-coin le Canapin)
24 فبراير 2023، 3:34م
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)
Is this theme component related in any shape or form to the light full-width theme?
daemon
(Alex)
24 فبراير 2023، 4:08م
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)
Canapin
(Coin-coin le Canapin)
24 فبراير 2023، 4:19م
6
It isn’t. Do you have a link to this theme? I couldn’t find it
إعجابَين (2)
daemon
(Alex)
24 فبراير 2023، 4:49م
7
I would love to have “light full-width”, too.
Can please someone from the @team release the css for it?
إعجابَين (2)
Can’t find it either, I think this theme is exclusive to this forum.
إعجاب واحد (1)
Canapin
(Coin-coin le Canapin)
24 فبراير 2023، 9:41م
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)
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)
Don
25 فبراير 2023، 9:03م
11
5 إعجابات
Heliosurge
(Dan DeMontmorency)
18 مارس 2023، 5:15م
13
Found the same issue in the Op post in Multilingual plugin links seem broken.
إعجاب واحد (1)