From a3b1241fca8ea6eec68c4cd79fa6810b859ac36c Mon Sep 17 00:00:00 2001 From: FatttSnake Date: Thu, 8 Aug 2024 10:26:48 +0800 Subject: [PATCH] Refactor(AppScrollbars): Reduce scroll bar width --- .../oxygen/toolbox/ui/component/scrollbar/AppScrollbars.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/kotlin/top/fatweb/oxygen/toolbox/ui/component/scrollbar/AppScrollbars.kt b/app/src/main/kotlin/top/fatweb/oxygen/toolbox/ui/component/scrollbar/AppScrollbars.kt index 23121e7..e0bf12c 100644 --- a/app/src/main/kotlin/top/fatweb/oxygen/toolbox/ui/component/scrollbar/AppScrollbars.kt +++ b/app/src/main/kotlin/top/fatweb/oxygen/toolbox/ui/component/scrollbar/AppScrollbars.kt @@ -87,8 +87,8 @@ private fun ScrollableState.DraggableScrollbarThumb( modifier = Modifier .run { when (orientation) { - Orientation.Vertical -> width(12.dp).fillMaxHeight() - Orientation.Horizontal -> height(12.dp).fillMaxWidth() + Orientation.Vertical -> width(2.dp).fillMaxHeight() + Orientation.Horizontal -> height(2.dp).fillMaxWidth() } } .scrollThumb(this, interactionSource)