Fixed scrolling the whole SideMenu, not only the bank accounts

This commit is contained in:
dankito 2024-09-01 18:02:40 +02:00
parent 3cff13949e
commit e5119b237e
1 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,7 @@ fun SideMenu(appContent: @Composable () -> Unit) {
drawerBackgroundColor = Colors.DrawerContentBackground, drawerBackgroundColor = Colors.DrawerContentBackground,
drawerContentColor = textColor, // seems to have no effect drawerContentColor = textColor, // seems to have no effect
drawerContent = { drawerContent = {
Column(Modifier) { Column(Modifier.verticalScroll(ScrollState(0), enabled = true)) {
Column(Modifier.fillMaxWidth().height(HeaderHeight.dp).background(HeaderBackground).padding(16.dp)) { Column(Modifier.fillMaxWidth().height(HeaderHeight.dp).background(HeaderBackground).padding(16.dp)) {
Spacer(Modifier.weight(1f)) Spacer(Modifier.weight(1f))
@ -75,7 +75,7 @@ fun SideMenu(appContent: @Composable () -> Unit) {
Divider(color = Colors.DrawerDivider) Divider(color = Colors.DrawerDivider)
Column(Modifier.verticalScroll(ScrollState(0), enabled = true).padding(horizontal = 16.dp, vertical = 24.dp)) { Column(Modifier.padding(horizontal = 16.dp, vertical = 24.dp)) {
Column(Modifier.height(ItemHeight), verticalArrangement = Arrangement.Center) { Column(Modifier.height(ItemHeight), verticalArrangement = Arrangement.Center) {
Text("Konten", color = textColor) Text("Konten", color = textColor)
} }