Fix Detail page label alignment.
This commit is contained in:
parent
4be9b70de3
commit
b338ea221a
1 changed files with 4 additions and 0 deletions
|
|
@ -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,
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue