Skip to content

Commit bbbb7f5

Browse files
Use textAlign in TagsSection
1 parent a094abd commit bbbb7f5

File tree

1 file changed

+4
-6
lines changed
  • app/src/main/java/org/schabi/newpipe/ui/components/metadata

1 file changed

+4
-6
lines changed

app/src/main/java/org/schabi/newpipe/ui/components/metadata/TagsSection.kt

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,17 @@ import androidx.compose.foundation.layout.ExperimentalLayoutApi
77
import androidx.compose.foundation.layout.FlowRow
88
import androidx.compose.foundation.layout.fillMaxWidth
99
import androidx.compose.foundation.layout.padding
10-
import androidx.compose.foundation.layout.wrapContentSize
1110
import androidx.compose.material3.MaterialTheme
1211
import androidx.compose.material3.SuggestionChip
1312
import androidx.compose.material3.Surface
1413
import androidx.compose.material3.Text
1514
import androidx.compose.runtime.Composable
1615
import androidx.compose.runtime.remember
17-
import androidx.compose.ui.Alignment
1816
import androidx.compose.ui.Modifier
1917
import androidx.compose.ui.platform.LocalContext
2018
import androidx.compose.ui.res.stringResource
2119
import androidx.compose.ui.text.font.FontWeight
20+
import androidx.compose.ui.text.style.TextAlign
2221
import androidx.compose.ui.tooling.preview.Preview
2322
import androidx.compose.ui.unit.dp
2423
import androidx.fragment.app.FragmentActivity
@@ -34,11 +33,10 @@ fun TagsSection(serviceId: Int, tags: List<String>) {
3433

3534
Column(modifier = Modifier.padding(4.dp)) {
3635
Text(
37-
modifier = Modifier
38-
.fillMaxWidth()
39-
.wrapContentSize(Alignment.Center),
36+
modifier = Modifier.fillMaxWidth(),
4037
text = stringResource(R.string.metadata_tags),
41-
fontWeight = FontWeight.Bold
38+
fontWeight = FontWeight.Bold,
39+
textAlign = TextAlign.Center
4240
)
4341

4442
FlowRow(horizontalArrangement = Arrangement.spacedBy(4.dp)) {

0 commit comments

Comments
 (0)