1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2025-01-24 07:56:57 +00:00

Use textAlign in TagsSection

This commit is contained in:
Isira Seneviratne 2024-09-01 19:50:38 +05:30
parent a094abd9ef
commit bbbb7f574b

View File

@ -7,18 +7,17 @@ import androidx.compose.foundation.layout.ExperimentalLayoutApi
import androidx.compose.foundation.layout.FlowRow
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.wrapContentSize
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.SuggestionChip
import androidx.compose.material3.Surface
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.runtime.remember
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import androidx.fragment.app.FragmentActivity
@ -34,11 +33,10 @@ fun TagsSection(serviceId: Int, tags: List<String>) {
Column(modifier = Modifier.padding(4.dp)) {
Text(
modifier = Modifier
.fillMaxWidth()
.wrapContentSize(Alignment.Center),
modifier = Modifier.fillMaxWidth(),
text = stringResource(R.string.metadata_tags),
fontWeight = FontWeight.Bold
fontWeight = FontWeight.Bold,
textAlign = TextAlign.Center
)
FlowRow(horizontalArrangement = Arrangement.spacedBy(4.dp)) {