Chat word wrapping kinda sucks #252
Labels
enhancement
improvement of any kind
good first issue
Good for newcomers
hacktoberfest
Good first issue for hacktoberfest!
help wanted
Extra attention is needed
Right now, the word breaking isn't using hyphens and we break words aggressively. While
overflow-wrap: break-word
would be an improvement overword-break: break-all
(word-break: break-word
is deprecated), the desired thing would be hyphens.While there's the
hyphens
property, it is dictionary aware, meaning that i wouldn't properly work, depending on the lobby language.In order to be able to use this, we need to do the following:
en_US
for american english<html lang="enUS">
. The property needs to be part of theBasePageConfig
and passed via templatesoverflow-wrap: break-word
insteadUPDATE
Status Quo:
The long words should be broken with a hyphen in order to not disturb the flow of reading.
After looking into the documentation, it seems this should pretty much work ootb: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_text/Wrapping_breaking_text#adding_hyphens
There's an example that applies the desired behaviour, using
overflow-wrap: break-word
, just like we already do. Thehyphen
andhyphen-character
values seem to make no difference either.The text was updated successfully, but these errors were encountered: