Skip to content

Commit edab9a6

Browse files
Fix alignment of comment message
1 parent 4740e3b commit edab9a6

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ package org.schabi.newpipe.compose.comment
22

33
import android.content.res.Configuration
44
import androidx.compose.foundation.layout.Column
5+
import androidx.compose.foundation.layout.fillMaxWidth
56
import androidx.compose.foundation.layout.padding
7+
import androidx.compose.foundation.layout.wrapContentSize
68
import androidx.compose.foundation.lazy.LazyColumn
79
import androidx.compose.foundation.lazy.rememberLazyListState
810
import androidx.compose.material3.HorizontalDivider
@@ -81,7 +83,10 @@ private fun NoCommentsMessage(error: Throwable?) {
8183
R.string.no_comments
8284
}
8385

84-
Column(horizontalAlignment = Alignment.CenterHorizontally) {
86+
Column(
87+
modifier = Modifier.fillMaxWidth().wrapContentSize(Alignment.Center),
88+
horizontalAlignment = Alignment.CenterHorizontally
89+
) {
8590
Text(text = "(╯°-°)╯", fontSize = 35.sp)
8691
Text(text = stringResource(id = message), fontSize = 24.sp)
8792
}

0 commit comments

Comments
 (0)