unocss-preset-scrollbar icon indicating copy to clipboard operation
unocss-preset-scrollbar copied to clipboard

Feat Request: scrollbar can display absolutely, not resize the container width/height.

Open chioio opened this issue 1 year ago • 3 comments

Hope to provide a property to set scrollbar display absolutely on the container, not resize the containers width or height.

chioio avatar Mar 22 '23 06:03 chioio

sorry, i don't understand,can you provide a css code about "display absolutely, not resize the container width/height." @chioio

action-hong avatar Mar 27 '23 14:03 action-hong

sorry, i don't understand,can you provide a css code about "display absolutely, not resize the container width/height." @chioio Like this: image But display this: image

chioio avatar Mar 31 '23 03:03 chioio

If I understand correctly, adding overflow: scroll; can achieve the effect you want. image

amihhs avatar Nov 27 '23 08:11 amihhs

I think the effect he wants is for the scrollbar to float above the content without taking up space in Windows, similar to how it appears on macOS or iOS. However, this library uses CSS to style the scrollbar, and it doesn’t seem to support this. To achieve a similar effect, the native scrollbar must be hidden and simulated using the DOM.

Jannchie avatar Oct 21 '24 13:10 Jannchie