right align the track times within their column

This commit is contained in:
austinried
2026-10-04 00:30:02 +00:00
parent 0d39a9de72
commit b908d90273
@@ -286,6 +286,7 @@ private fun TrackTime(seconds: Long) {
SmallNumber( SmallNumber(
text = formatTrackTime(seconds), text = formatTrackTime(seconds),
modifier = Modifier.width(TIME_COLUMN_WIDTH), modifier = Modifier.width(TIME_COLUMN_WIDTH),
textAlign = TextAlign.End,
) )
} }
@@ -293,12 +294,13 @@ private fun TrackTime(seconds: Long) {
private fun SmallNumber( private fun SmallNumber(
text: String, text: String,
modifier: Modifier = Modifier, modifier: Modifier = Modifier,
textAlign: TextAlign = TextAlign.Center,
) { ) {
val style = MaterialTheme.typography.bodySmall val style = MaterialTheme.typography.bodySmall
BasicText( BasicText(
text = text, text = text,
modifier = modifier.fillMaxWidth(), modifier = modifier.fillMaxWidth(),
style = style.copy(textAlign = TextAlign.Center, color = MaterialTheme.colorScheme.onSurfaceVariant), style = style.copy(textAlign = textAlign, color = MaterialTheme.colorScheme.onSurfaceVariant),
maxLines = 1, maxLines = 1,
autoSize = autoSize =
TextAutoSize.StepBased( TextAutoSize.StepBased(