Fixes padding of the new new post screen

This commit is contained in:
Vitor Pamplona
2024-10-15 17:20:16 -04:00
parent a57566dd84
commit 974c022aed
@@ -42,7 +42,7 @@ import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.WindowInsets
import androidx.compose.foundation.layout.fillMaxHeight
import androidx.compose.foundation.layout.consumeWindowInsets
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
@@ -312,24 +312,16 @@ fun NewPostScreen(
Surface(
modifier =
Modifier
.padding(
.padding(pad)
.consumeWindowInsets(pad)
.imePadding(),
) {
Column(
modifier =
Modifier.fillMaxSize().padding(
start = Size10dp,
top = pad.calculateTopPadding(),
end = Size10dp,
bottom = pad.calculateBottomPadding(),
).fillMaxSize(),
) {
Column(
modifier =
Modifier
.fillMaxWidth()
.fillMaxHeight(),
) {
Column(
modifier =
Modifier
.imePadding()
.weight(1f),
),
) {
Row(
modifier =
@@ -550,7 +542,6 @@ fun NewPostScreen(
}
}
}
}
// Dialog(
// onDismissRequest = {
// scope.launch {