Replies: 1 comment
-
update: so a possible solution would be allowing setting although for my project I'm doing
because the default overflowing behavior doesn't seem like a better choice |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
break-words
setsoverflow-wrap: break-word;
, but this does not break the line for me:while
word-break: break-word;
does:I did not set a width for the container, so the viewport width is what causes the breaking.
In tailwind there is no way to set
word-break: break-word;
.maybe
break-words
should apply both rules?edit:
overflow-wrap: anywhere
also breaks lines in my example as intended, but that rule is not available in tailwind.basically, I would need either of these:
but neither is available.
from my testing, it seems that
overflow-wrap: break-word;
only actually breaks words when the element itself has a width/max-width. when a parent does, or the max viewport width is reached, it does nothing.Beta Was this translation helpful? Give feedback.
All reactions