File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
app/src/main/java/org/schabi/newpipe/compose/comment Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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)
You can’t perform that action at this time.
0 commit comments