Fixed padding

This commit is contained in:
imkunet 2024-02-19 18:26:06 -05:00 committed by imkunet
parent 44cffcfcf7
commit f262f68ea7
No known key found for this signature in database
GPG Key ID: 32E0ECFB90A68C42
2 changed files with 7 additions and 9 deletions

View File

@ -5,6 +5,7 @@ import androidx.compose.animation.fadeIn
import androidx.compose.animation.fadeOut
import androidx.compose.foundation.layout.WindowInsets
import androidx.compose.foundation.layout.WindowInsetsSides
import androidx.compose.foundation.layout.consumeWindowInsets
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.imePadding
import androidx.compose.foundation.layout.navigationBars
@ -83,7 +84,8 @@ fun MangaNotesScreen(
)
}
},
modifier = modifier,
modifier = modifier
.imePadding(),
) { paddingValues ->
AnimatedVisibility(
state.editing,

View File

@ -1,9 +1,7 @@
package eu.kanade.presentation.manga.components
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.imePadding
import androidx.compose.material3.OutlinedTextField
import androidx.compose.runtime.Composable
import androidx.compose.runtime.DisposableEffect
@ -30,17 +28,15 @@ fun MangaNotesTextArea(
}
val focusRequester = remember { FocusRequester() }
Column(
Box(
modifier = modifier
.fillMaxSize()
.imePadding(),
.fillMaxSize(),
) {
OutlinedTextField(
value = text,
onValueChange = { text = it },
modifier = Modifier
.fillMaxWidth()
.weight(1f)
.fillMaxSize()
.focusRequester(focusRequester),
)
}