hint.css icon indicating copy to clipboard operation
hint.css copied to clipboard

width: max-content and max-width implementation

Open MuhammetDilmac opened this issue 1 year ago • 1 comments

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

MuhammetDilmac avatar Apr 28 '23 23:04 MuhammetDilmac

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?

chinchang avatar Nov 29 '23 18:11 chinchang