Fix comment display limits
This commit is contained in:
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,
|
||||
|
||||
Reference in new issue
Block a user