From fd064796767b6c9a9d000136d51c8cea2802ae4f Mon Sep 17 00:00:00 2001 From: Jonatan Rhodin Date: Wed, 7 Aug 2024 09:12:43 +0200 Subject: [PATCH] Align scrollbar always to the right in view logs --- .../net/mullvad/mullvadvpn/compose/screen/ViewLogsScreen.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/screen/ViewLogsScreen.kt b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/screen/ViewLogsScreen.kt index 260d5a4b65b5..0047655e26ce 100644 --- a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/screen/ViewLogsScreen.kt +++ b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/screen/ViewLogsScreen.kt @@ -2,6 +2,7 @@ package net.mullvad.mullvadvpn.compose.screen import android.content.Context import androidx.compose.foundation.layout.fillMaxSize +import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.padding import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.items @@ -129,7 +130,8 @@ fun ViewLogsScreen( LazyColumn( state = listState, modifier = - Modifier.drawVerticalScrollbar( + Modifier.fillMaxWidth() + .drawVerticalScrollbar( listState, MaterialTheme.colorScheme.primary.copy(alpha = AlphaScrollbar) )