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 acb887896..f3c809514 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 @@ -350,7 +350,6 @@ fun GalleryCommentsScreen(galleryDetail: GalleryDetail, navigator: NavController } }, ) { - maxLines = 5 text = context.generateComment(this, item) } } diff --git a/app/src/main/kotlin/com/hippo/ehviewer/ui/scene/GalleryDetailScene.kt b/app/src/main/kotlin/com/hippo/ehviewer/ui/scene/GalleryDetailScene.kt index f17a1402b..6063cbb78 100644 --- a/app/src/main/kotlin/com/hippo/ehviewer/ui/scene/GalleryDetailScene.kt +++ b/app/src/main/kotlin/com/hippo/ehviewer/ui/scene/GalleryDetailScene.kt @@ -993,9 +993,7 @@ class GalleryDetailScene : BaseScene() { stringResource(R.string.more_comment) } CrystalCard { - val length = maxShowCount.coerceAtMost(commentsList.size) - for (i in 0 until length) { - val item = commentsList[i] + commentsList.take(maxShowCount).forEach { item -> GalleryCommentCard( modifier = Modifier.padding(vertical = 4.dp), comment = item,