fix(chat): remove double padding and zero out nested Scaffold window insets
This commit is contained in:
1 parent
a7fcfd4088
commit
54ebe8714e
2 files changed
+3
-2
No files matched your search
@@ -322,12 +322,11 @@ fun ChatScreen(
|
||||
)
|
||||
}
|
||||
},
|
||||
) { paddingValues ->
|
||||
) { _ ->
|
||||
Column(
|
||||
modifier =
|
||||
Modifier
|
||||
.fillMaxSize()
|
||||
.padding(paddingValues)
|
||||
.background(backgroundGradient)
|
||||
.imePadding(),
|
||||
) {
|
||||
|
||||
@@ -2,6 +2,7 @@ package com.m57.hermescontrol.ui.common
|
||||
|
||||
import androidx.compose.foundation.layout.Box
|
||||
import androidx.compose.foundation.layout.PaddingValues
|
||||
import androidx.compose.foundation.layout.WindowInsets
|
||||
import androidx.compose.foundation.layout.fillMaxSize
|
||||
import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.material.icons.Icons
|
||||
@@ -50,6 +51,7 @@ fun HermesScaffold(
|
||||
|
||||
Scaffold(
|
||||
modifier = modifier.nestedScroll(scrollBehavior.nestedScrollConnection),
|
||||
contentWindowInsets = WindowInsets(0, 0, 0, 0),
|
||||
snackbarHost = { snackbarHost() },
|
||||
topBar = {
|
||||
TopAppBar(
|
||||
|
||||
Reference in new issue
Block a user