From 5da2f91e6addf138e521197917881abb0aa47c39 Mon Sep 17 00:00:00 2001 From: FooIbar <118464521+FooIbar@users.noreply.github.com> Date: Wed, 15 Nov 2023 19:55:23 +0800 Subject: [PATCH] Fix comment EditText height --- .../com/hippo/ehviewer/ui/scene/GalleryCommentsFragment.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/hippo/ehviewer/ui/scene/GalleryCommentsFragment.kt b/app/src/main/kotlin/com/hippo/ehviewer/ui/scene/GalleryCommentsFragment.kt index 7e8b0371b..914dd4d2d 100644 --- a/app/src/main/kotlin/com/hippo/ehviewer/ui/scene/GalleryCommentsFragment.kt +++ b/app/src/main/kotlin/com/hippo/ehviewer/ui/scene/GalleryCommentsFragment.kt @@ -30,10 +30,12 @@ import androidx.compose.animation.AnimatedVisibility import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.Column +import androidx.compose.foundation.layout.IntrinsicSize import androidx.compose.foundation.layout.PaddingValues import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.fillMaxWidth +import androidx.compose.foundation.layout.height import androidx.compose.foundation.layout.imePadding import androidx.compose.foundation.layout.navigationBarsPadding import androidx.compose.foundation.layout.padding @@ -426,7 +428,7 @@ fun GalleryCommentsScreen(galleryDetail: GalleryDetail, navigator: NavController layout(width, height) { placeable.placeRelative(0, 0) } - }.clip(RoundedCornerShape((animationProgress * 100).roundToInt())), + }.clip(RoundedCornerShape((animationProgress * 100).roundToInt())).height(IntrinsicSize.Min), color = MaterialTheme.colorScheme.primaryContainer, ) { Row(