From 333c66c2a20a87c6641f8ab08fa0fa0067126a73 Mon Sep 17 00:00:00 2001 From: dankito Date: Wed, 28 Aug 2024 23:48:41 +0200 Subject: [PATCH] Fixed that navigation menu hasn't been scrollable --- .../kotlin/net/codinux/banking/ui/appskeleton/SideMenu.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/appskeleton/SideMenu.kt b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/appskeleton/SideMenu.kt index 49765e8..316b335 100644 --- a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/appskeleton/SideMenu.kt +++ b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/appskeleton/SideMenu.kt @@ -1,8 +1,10 @@ package net.codinux.banking.ui.appskeleton import androidx.compose.foundation.Image +import androidx.compose.foundation.ScrollState import androidx.compose.foundation.background import androidx.compose.foundation.layout.* +import androidx.compose.foundation.verticalScroll import androidx.compose.material.* import androidx.compose.runtime.Composable import androidx.compose.runtime.collectAsState @@ -15,6 +17,7 @@ import bankmeister.composeapp.generated.resources.AppIcon import bankmeister.composeapp.generated.resources.Res import kotlinx.coroutines.launch import net.codinux.banking.ui.composables.BanksList +import net.codinux.banking.ui.composables.NavigationMenuItem import net.codinux.banking.ui.config.Colors import net.codinux.banking.ui.config.DI import net.codinux.banking.ui.model.BankAccountFilter @@ -63,7 +66,7 @@ fun SideMenu(appContent: @Composable () -> Unit) { Divider(color = Colors.DrawerDivider) - Column(Modifier.padding(horizontal = 16.dp, vertical = 24.dp)) { + Column(Modifier.verticalScroll(ScrollState(0), enabled = true).padding(horizontal = 16.dp, vertical = 24.dp)) { Column(Modifier.height(ItemHeight), verticalArrangement = Arrangement.Center) { Text("Konten", color = Colors.DrawerPrimaryText) }