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

View File

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