hint.css
hint.css copied to clipboard
width: max-content and max-width implementation
What do you think about width: max-content
and max-width
implementation? white-space: nowrap
has endless width problem on long text.
See the difference between https://codepen.io/MuhammetDilmac/pen/abRyvBd
Trying to better understand the problem being fixed here...we do have hint-small etc size classes to restrict the size of tooltip. Though these classes fix the width
instead of max-width
, the issue I see possible here is that we use a size class, the size gets fixed, but the content inside is much smaller than the fixed width. Is there some other issue that I am missing here?