mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-10-10 10:32:58 +02:00
Fixes padding of the new new post screen
This commit is contained in:
@@ -42,7 +42,7 @@ import androidx.compose.foundation.layout.PaddingValues
|
|||||||
import androidx.compose.foundation.layout.Row
|
import androidx.compose.foundation.layout.Row
|
||||||
import androidx.compose.foundation.layout.Spacer
|
import androidx.compose.foundation.layout.Spacer
|
||||||
import androidx.compose.foundation.layout.WindowInsets
|
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.fillMaxSize
|
||||||
import androidx.compose.foundation.layout.fillMaxWidth
|
import androidx.compose.foundation.layout.fillMaxWidth
|
||||||
import androidx.compose.foundation.layout.height
|
import androidx.compose.foundation.layout.height
|
||||||
@@ -312,24 +312,16 @@ fun NewPostScreen(
|
|||||||
Surface(
|
Surface(
|
||||||
modifier =
|
modifier =
|
||||||
Modifier
|
Modifier
|
||||||
.padding(
|
.padding(pad)
|
||||||
|
.consumeWindowInsets(pad)
|
||||||
|
.imePadding(),
|
||||||
|
) {
|
||||||
|
Column(
|
||||||
|
modifier =
|
||||||
|
Modifier.fillMaxSize().padding(
|
||||||
start = Size10dp,
|
start = Size10dp,
|
||||||
top = pad.calculateTopPadding(),
|
|
||||||
end = Size10dp,
|
end = Size10dp,
|
||||||
bottom = pad.calculateBottomPadding(),
|
),
|
||||||
).fillMaxSize(),
|
|
||||||
) {
|
|
||||||
Column(
|
|
||||||
modifier =
|
|
||||||
Modifier
|
|
||||||
.fillMaxWidth()
|
|
||||||
.fillMaxHeight(),
|
|
||||||
) {
|
|
||||||
Column(
|
|
||||||
modifier =
|
|
||||||
Modifier
|
|
||||||
.imePadding()
|
|
||||||
.weight(1f),
|
|
||||||
) {
|
) {
|
||||||
Row(
|
Row(
|
||||||
modifier =
|
modifier =
|
||||||
@@ -550,7 +542,6 @@ fun NewPostScreen(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
// Dialog(
|
// Dialog(
|
||||||
// onDismissRequest = {
|
// onDismissRequest = {
|
||||||
// scope.launch {
|
// scope.launch {
|
||||||
|
Reference in New Issue
Block a user