Fixes padding of the new new post screen
This commit is contained in:
+9
-18
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user