diff --git a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/appskeleton/ContentPane.kt b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/appskeleton/ContentPane.kt index b77f67e..1f6a743 100644 --- a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/appskeleton/ContentPane.kt +++ b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/appskeleton/ContentPane.kt @@ -23,5 +23,7 @@ fun ContentPane( TransactionsList(uiState, uiSettings, isMobile) } - StateHandler(uiState, snackbarHostState) + if (isMobile) { + StateHandler(uiState, snackbarHostState) + } } \ No newline at end of file diff --git a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/appskeleton/DesktopLayout.kt b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/appskeleton/DesktopLayout.kt index e611187..013989c 100644 --- a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/appskeleton/DesktopLayout.kt +++ b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/appskeleton/DesktopLayout.kt @@ -2,10 +2,11 @@ package net.codinux.banking.ui.appskeleton import androidx.compose.foundation.layout.* import androidx.compose.material.SnackbarHostState -import androidx.compose.runtime.Composable +import androidx.compose.runtime.* import androidx.compose.ui.Modifier import androidx.compose.ui.unit.Dp import androidx.compose.ui.unit.dp +import net.codinux.banking.ui.composables.StateHandler import net.codinux.banking.ui.settings.UiSettings import net.codinux.banking.ui.state.UiState @@ -23,6 +24,8 @@ fun DesktopLayout( } Column(Modifier.fillMaxSize().weight(1f).padding(start = 6.dp)) { + StateHandler(uiState, snackbarHostState) + Row(Modifier.fillMaxWidth().weight(1f)) { ContentPane(scaffoldPadding, uiState, uiSettings, snackbarHostState, false) }