Skip to content

Commit 2775f4e

Browse files
Fix some modifiers
1 parent ef713e1 commit 2775f4e

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

app/src/main/java/org/schabi/newpipe/compose/comment/Comment.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ fun Comment(comment: CommentsInfoItem) {
6161

6262
Row(
6363
modifier = Modifier
64-
.fillMaxWidth()
64+
.animateContentSize()
6565
.clickable { isExpanded = !isExpanded }
66-
.padding(all = 8.dp),
66+
.padding(8.dp),
6767
horizontalArrangement = Arrangement.spacedBy(8.dp)
6868
) {
6969
if (ImageStrategy.shouldLoadImages()) {
@@ -102,7 +102,6 @@ fun Comment(comment: CommentsInfoItem) {
102102
}
103103

104104
Text(
105-
modifier = Modifier.animateContentSize(),
106105
text = rememberParsedDescription(comment.commentText),
107106
// If the comment is expanded, we display all its content
108107
// otherwise we only display the first two lines

app/src/main/java/org/schabi/newpipe/compose/comment/CommentSection.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@ private fun NoCommentsMessage(error: Throwable?) {
8484
}
8585

8686
Column(
87-
modifier = Modifier.fillMaxWidth().wrapContentSize(Alignment.Center),
87+
modifier = Modifier
88+
.fillMaxWidth()
89+
.wrapContentSize(Alignment.Center),
8890
horizontalAlignment = Alignment.CenterHorizontally
8991
) {
9092
Text(text = "(╯°-°)╯", fontSize = 35.sp)

0 commit comments

Comments
 (0)