From a74a73d393ffd7b9dba3e21bd578fa061d6e9fb2 Mon Sep 17 00:00:00 2001 From: Stefan Lobbenmeier Date: Fri, 10 Jan 2025 18:58:47 -0300 Subject: [PATCH] Fix bottom app bar overlapping the DownloadList (#126) --- src/main/kotlin/de/lobbenmeier/stefan/ui/App.kt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/de/lobbenmeier/stefan/ui/App.kt b/src/main/kotlin/de/lobbenmeier/stefan/ui/App.kt index e63e11a..a638cf7 100644 --- a/src/main/kotlin/de/lobbenmeier/stefan/ui/App.kt +++ b/src/main/kotlin/de/lobbenmeier/stefan/ui/App.kt @@ -1,6 +1,8 @@ package de.lobbenmeier.stefan.ui +import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.Column +import androidx.compose.foundation.layout.padding import androidx.compose.material.Scaffold import androidx.compose.runtime.Composable import androidx.compose.runtime.collectAsState @@ -9,6 +11,7 @@ import androidx.compose.runtime.mutableStateOf import androidx.compose.runtime.remember import androidx.compose.runtime.setValue import androidx.compose.ui.ExperimentalComposeUiApi +import androidx.compose.ui.Modifier import androidx.compose.ui.window.Dialog import androidx.compose.ui.window.DialogProperties import de.lobbenmeier.stefan.downloadlist.business.YtDlp @@ -84,8 +87,8 @@ private fun MainView( downloadAll = downloadQueue::downloadAll, ) }, - ) { - DownloadList(downloadQueue) + ) { paddingValues -> + Box(modifier = Modifier.padding(paddingValues)) { DownloadList(downloadQueue) } } } }