mirror of
https://github.com/austinried/subtracks.git
synced 2026-11-11 07:29:14 +01:00
right align the track times within their column
This commit is contained in:
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user