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(
text = formatTrackTime(seconds),
modifier = Modifier.width(TIME_COLUMN_WIDTH),
textAlign = TextAlign.End,
)
}
@@ -293,12 +294,13 @@ private fun TrackTime(seconds: Long) {
private fun SmallNumber(
text: String,
modifier: Modifier = Modifier,
textAlign: TextAlign = TextAlign.Center,
) {
val style = MaterialTheme.typography.bodySmall
BasicText(
text = text,
modifier = modifier.fillMaxWidth(),
style = style.copy(textAlign = TextAlign.Center, color = MaterialTheme.colorScheme.onSurfaceVariant),
style = style.copy(textAlign = textAlign, color = MaterialTheme.colorScheme.onSurfaceVariant),
maxLines = 1,
autoSize =
TextAutoSize.StepBased(