[Feature] scrollbar 宽度占用空间优化
Open
@xxxace is already working on this.
Since Apr 23, 2025.
feature
- Dominant language
- TypeScript
- Stars
- 3.7k
- Forks
- 486
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 16
Description
What problem does this feature solve?
theme: {
scrollStyle: {
scrollRailColor: 'RGBA(216,216,216,.5)',
visible: 'always',
width: 16,
hoverOn: false,
barToSide: true,
scrollSliderCornerRadius: 0,
scrollSliderColor: 'RGBA(170,170,170,1)',
}
}
当hoverOn: false时,高度够的情况下,scrollbar是隐藏的(正常),但是scrollbar的宽度依然占用(不正常)
当hoverOn: true时, 出现的scrollbar会遮挡住内容
What does the proposed API look like?
个人认为无需修改api,只需在渲染时对scrollbar的宽度和布局进行优化
非常感谢
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.