Fix comment display limits

This commit is contained in:
Lokesh Gidra authored and nullArrayList committed 2023-11-06 18:29:48 +08:00
1 parent c4be269fb7
commit 3bc71d6798
2 files changed
+1 -4

No files matched your search

@@ -350,7 +350,6 @@ fun GalleryCommentsScreen(galleryDetail: GalleryDetail, navigator: NavController
}
},
) {
maxLines = 5
text = context.generateComment(this, item)
}
}
@@ -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,