Refactor(AppScrollbars): Reduce scroll bar width

This commit is contained in:
2024-08-08 10:26:48 +08:00
parent 596ad2ccbe
commit a3b1241fca

View File

@@ -87,8 +87,8 @@ private fun ScrollableState.DraggableScrollbarThumb(
modifier = Modifier modifier = Modifier
.run { .run {
when (orientation) { when (orientation) {
Orientation.Vertical -> width(12.dp).fillMaxHeight() Orientation.Vertical -> width(2.dp).fillMaxHeight()
Orientation.Horizontal -> height(12.dp).fillMaxWidth() Orientation.Horizontal -> height(2.dp).fillMaxWidth()
} }
} }
.scrollThumb(this, interactionSource) .scrollThumb(this, interactionSource)