Canapin
(Coin-coin le Canapin)
2월 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)
2월 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)
2월 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
3개의 좋아요
Is this theme component related in any shape or form to the light full-width theme?
daemon
(Alex)
2월 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)
2월 24, 2023, 4:19오후
6
It isn’t. Do you have a link to this theme? I couldn’t find it
2개의 좋아요
daemon
(Alex)
2월 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)
2월 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
2월 25, 2023, 9:03오후
11
5개의 좋아요
Heliosurge
(Dan DeMontmorency)
3월 18, 2023, 5:15오후
13
Found the same issue in the Op post in Multilingual plugin links seem broken.
1개의 좋아요