Fix Detail page label alignment.

This commit is contained in:
Thomas Andres Gomez 2023-04-06 13:41:54 +02:00
parent 4be9b70de3
commit b338ea221a

View file

@ -20,6 +20,7 @@ import androidx.compose.ui.layout.onSizeChanged
import androidx.compose.ui.platform.LocalDensity
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.compose.ui.unit.dp
@ -141,6 +142,7 @@ fun DetailScreenContent(
Text(
style = MaterialTheme.typography.h5,
color = MaterialTheme.colors.onSurface,
textAlign = TextAlign.Center,
text = book.title,
)
book.series?.let { series ->
@ -148,6 +150,7 @@ fun DetailScreenContent(
modifier = Modifier.clickable(onClick = { onSeries(series) }),
style = MaterialTheme.typography.body1,
color = MaterialTheme.colors.onSurface,
textAlign = TextAlign.Center,
text = series.label,
)
}
@ -165,6 +168,7 @@ fun DetailScreenContent(
fontWeight = FontWeight.Bold,
style = MaterialTheme.typography.h6,
color = MaterialTheme.colors.onSurface,
textAlign = TextAlign.Center,
text = author.name,
)
}