mirror of
https://github.com/TeamNewPipe/NewPipe.git
synced 2024-11-25 20:42:34 +01:00
Fix alignment of comment message
This commit is contained in:
parent
4740e3be86
commit
edab9a6a1f
@ -2,7 +2,9 @@ package org.schabi.newpipe.compose.comment
|
|||||||
|
|
||||||
import android.content.res.Configuration
|
import android.content.res.Configuration
|
||||||
import androidx.compose.foundation.layout.Column
|
import androidx.compose.foundation.layout.Column
|
||||||
|
import androidx.compose.foundation.layout.fillMaxWidth
|
||||||
import androidx.compose.foundation.layout.padding
|
import androidx.compose.foundation.layout.padding
|
||||||
|
import androidx.compose.foundation.layout.wrapContentSize
|
||||||
import androidx.compose.foundation.lazy.LazyColumn
|
import androidx.compose.foundation.lazy.LazyColumn
|
||||||
import androidx.compose.foundation.lazy.rememberLazyListState
|
import androidx.compose.foundation.lazy.rememberLazyListState
|
||||||
import androidx.compose.material3.HorizontalDivider
|
import androidx.compose.material3.HorizontalDivider
|
||||||
@ -81,7 +83,10 @@ private fun NoCommentsMessage(error: Throwable?) {
|
|||||||
R.string.no_comments
|
R.string.no_comments
|
||||||
}
|
}
|
||||||
|
|
||||||
Column(horizontalAlignment = Alignment.CenterHorizontally) {
|
Column(
|
||||||
|
modifier = Modifier.fillMaxWidth().wrapContentSize(Alignment.Center),
|
||||||
|
horizontalAlignment = Alignment.CenterHorizontally
|
||||||
|
) {
|
||||||
Text(text = "(╯°-°)╯", fontSize = 35.sp)
|
Text(text = "(╯°-°)╯", fontSize = 35.sp)
|
||||||
Text(text = stringResource(id = message), fontSize = 24.sp)
|
Text(text = stringResource(id = message), fontSize = 24.sp)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user