From 0e223a3781849830e4dbef176ad8196364353a87 Mon Sep 17 00:00:00 2001 From: Jesse Horne Date: Tue, 28 Nov 2023 18:01:12 -0500 Subject: [PATCH] added vertical scrollbar for chat list for desktop --- .../kotlin/chat/simplex/common/views/chat/ChatView.kt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/ChatView.kt b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/ChatView.kt index 8eee43035b..f0186cfc7f 100644 --- a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/ChatView.kt +++ b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/ChatView.kt @@ -1005,6 +1005,14 @@ fun BoxWithConstraintsScope.ChatItemsList( } } } + if (appPlatform.isDesktop) { + VerticalScrollbar( + modifier = Modifier.align(Alignment.CenterEnd) + .fillMaxHeight(), + adapter = rememberScrollbarAdapter(listState), + reverseLayout = true + ) + } FloatingButtons(chatItems, unreadCount, chat.chatStats.minUnreadItemId, searchValue, markRead, setFloatingButton, listState) }