Hidden hint makes website wider
dvorapa opened this issue · comments
I am also seeing this error and it is super annoying
Since this is happening because of the tooltip going beyond the website boundaries, there are following solutions I can think of:
- Quick fix - Choose another tooltip position such that it doesn't extends in the direction (right & bottom) where its increasing the website dimensions.
- Quick fix - Limit body to max
100vw
assuming it never scrolls horizontally. And then you can useoverflow:hidden
to not let anything. Note that this will crop the tooltip though. - Better fix - Hint.css could have media query classes that allow you to position tooltips in a certain way on a certain screen size. This is essentially supporting the above mentioned solution 1 within the library in a more proper way. (there is also a PR in this context)