Replies: 7 comments 5 replies
-
|
Maybe |
Beta Was this translation helpful? Give feedback.
-
|
As @ThomOrlo mentions above the upcoming Coming in Chrome 94 https://www.chromestatus.com/feature/5746559209701376 Unfortunately theres no existing cross browser way to do this. If you do really want to avoid the layout shift, set |
Beta Was this translation helpful? Give feedback.
-
|
Just to note Chrome 94 is now out so you can test |
Beta Was this translation helpful? Give feedback.
-
|
If my PR gets merged there will be utilities for this ( |
Beta Was this translation helpful? Give feedback.
-
|
Just in case anyone else finds this discussion. |
Beta Was this translation helpful? Give feedback.
-
|
Everything is very open with a clear description of the issues. It was truly informative. Your website is very helpful. Many thanks for sharing! |
Beta Was this translation helpful? Give feedback.
-
|
Unfortunately my PR mentioned above wasn't accepted (Adam gave a very reasonable explanation why on the PR itself) In case anyone comes across this discussion and wants a solution in the meantime. I've made an npm package with a plugin for scrollbar gutter (along with width and color) utilities. See https://github.com/lukewarlow/tailwind-scrollbar-utilities |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey guys. Is there some utility that would prevent the scrollbar to move the content when it's shown.
For instance, if you got to a page that doesn't have vertical scrolling, and then you move to the one that does, content will move from right to left for the scrollbar width. Is there a way to change this behavior using Tailwind CSS or I have to write custom stuff?
Thanks in advance,
Alex
Beta Was this translation helpful? Give feedback.
All reactions