You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You're right. Tailwind also sets overflow: hidden in the line-clamp classes, so overflow classes should be removed, too. I'll fix this in the coming days.
Describe the bug
The
line-clamp-*
depends on having display set to-webkit-box
or-webkit-inline-box
. Tailwindline-clamp-*
setsdisplay: -webkit-box
.Therefore there is no point in keeping other basic display classes like
inline
,block
orinline-block
when there is aline-clamp-*
afterwards.However,
twMerge
keeps Display classes when they are followed by a line clamp class.To Reproduce
Expected behavior
Environment
The text was updated successfully, but these errors were encountered: