The discussion revolves around a Discourse theme component called “Discourse Custom Width” by Canapin, which allows users to set a custom width for their forum, with a default max of 1110px and a limit to prevent layout issues. daemon suggests supporting other units like percentages and proposes a validation system to avoid breaking the layout, but Canapin notes CSS limitations. twofoursixeight and daemon inquire about a “light full-width” theme, with Don sharing a link to a related repository. Canapin considers enhancing the component with user-specific settings. Nick_Tomlinson also seeks information on full-width themes, while Heliosurge mentions a separate issue with broken links in the Multilingual plugin.
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.
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.