unpreset / unocss-preset-scrollbar

Scrollbar for UnoCSS preset.
MIT License
53 stars 3 forks source link

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

Open chioio opened 1 year ago

chioio commented 1 year ago

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

action-hong commented 1 year ago

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

chioio commented 1 year ago

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

amihhs commented 11 months ago

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

Jannchie commented 3 weeks ago

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.