1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-12-24 17:10:33 +00:00

Fix some modifiers

This commit is contained in:
Isira Seneviratne 2024-07-16 19:09:38 +05:30
parent edab9a6a1f
commit f984b26626
2 changed files with 5 additions and 4 deletions

View File

@ -61,9 +61,9 @@ fun Comment(comment: CommentsInfoItem) {
Row( Row(
modifier = Modifier modifier = Modifier
.fillMaxWidth() .animateContentSize()
.clickable { isExpanded = !isExpanded } .clickable { isExpanded = !isExpanded }
.padding(all = 8.dp), .padding(8.dp),
horizontalArrangement = Arrangement.spacedBy(8.dp) horizontalArrangement = Arrangement.spacedBy(8.dp)
) { ) {
if (ImageStrategy.shouldLoadImages()) { if (ImageStrategy.shouldLoadImages()) {
@ -102,7 +102,6 @@ fun Comment(comment: CommentsInfoItem) {
} }
Text( Text(
modifier = Modifier.animateContentSize(),
text = rememberParsedDescription(comment.commentText), text = rememberParsedDescription(comment.commentText),
// If the comment is expanded, we display all its content // If the comment is expanded, we display all its content
// otherwise we only display the first two lines // otherwise we only display the first two lines

View File

@ -84,7 +84,9 @@ private fun NoCommentsMessage(error: Throwable?) {
} }
Column( Column(
modifier = Modifier.fillMaxWidth().wrapContentSize(Alignment.Center), modifier = Modifier
.fillMaxWidth()
.wrapContentSize(Alignment.Center),
horizontalAlignment = Alignment.CenterHorizontally horizontalAlignment = Alignment.CenterHorizontally
) { ) {
Text(text = "(╯°-°)╯", fontSize = 35.sp) Text(text = "(╯°-°)╯", fontSize = 35.sp)