Open Vrixyz opened 1 year ago
using overflow: scroll;
also causes space for a horizontal scrollbar to be allocated. maybe it should be changed to just overflow-y: scroll;
?
scrollbar-gutter: stable;
, a very very new CSS property that solves this without showing a disabled scrollbar (not yet supported in safari).overflow: overlay;
(and by extension, overflow-y: overlay;
) which might do exactly what you want.. but it's a non-standard property. surprisingly, it just got added to firefox despite being in chrome for over 10 years. it doesn't seem to work on my machine in both browsers, though. this is probably because it's up to the OS to implement overlaid scrollbars, not the browser.
small fix to avoid a changing width when scroll appears
https://github.com/aaranxu/adidoks/assets/2290685/5d45cab1-159e-4072-9a5b-51a867547f45