diff --git a/app/src/main/java/eu/kanade/presentation/manga/MangaNotesScreen.kt b/app/src/main/java/eu/kanade/presentation/manga/MangaNotesScreen.kt index 317354224..b97ab3ba6 100644 --- a/app/src/main/java/eu/kanade/presentation/manga/MangaNotesScreen.kt +++ b/app/src/main/java/eu/kanade/presentation/manga/MangaNotesScreen.kt @@ -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, diff --git a/app/src/main/java/eu/kanade/presentation/manga/components/MangaNotesTextArea.kt b/app/src/main/java/eu/kanade/presentation/manga/components/MangaNotesTextArea.kt index f90ae1e0c..86245f2fa 100644 --- a/app/src/main/java/eu/kanade/presentation/manga/components/MangaNotesTextArea.kt +++ b/app/src/main/java/eu/kanade/presentation/manga/components/MangaNotesTextArea.kt @@ -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), ) }