Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upFix overflowing text in Cards with `word-wrap: break-word` #22740
Conversation
This comment has been minimized.
This comment has been minimized.
|
I feel like adding this to the entire card would be overdoing it. How does this interact with more complex card contexts, subcomponents, etc? Wondering if it'd be better to make this an easier utility or apply it to multiple card classes. |
This comment has been minimized.
This comment has been minimized.
|
Hey @mdo, I think having it on the entire card is the right thing to do. It makes all the card sub components function like they should e.g. It wasn't working in some of the sub components because I missed adding |
891bca4
into
twbs:v4-dev
pat270 commentedJun 1, 2017
Demo: https://jsfiddle.net/4h6okLkn/2/
Long text with no whitespace overflow in cards, this fix should cover most long text in cards. I used
word-wrap: break-wordinstead ofword-break: break-allbecause it breaks up the words a little bit better.