File tree Expand file tree Collapse file tree
app/src/main/java/org/schabi/newpipe/compose/comment Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,7 +2,9 @@ package org.schabi.newpipe.compose.comment
22
33import android.content.res.Configuration
44import androidx.compose.foundation.layout.Column
5+ import androidx.compose.foundation.layout.fillMaxWidth
56import androidx.compose.foundation.layout.padding
7+ import androidx.compose.foundation.layout.wrapContentSize
68import androidx.compose.foundation.lazy.LazyColumn
79import androidx.compose.foundation.lazy.rememberLazyListState
810import 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 }
You can’t perform that action at this time.
0 commit comments