fix(US-06): fix preset buttons wrapping on 3-digit BPM values

Set fixed button size and zero content padding so numbers
like 130, 140, 160 fit on a single line.
This commit is contained in:
Jeena 2026-03-09 08:10:30 +00:00
parent 3f38737a30
commit 4fa725e4ed

View file

@ -156,6 +156,8 @@ fun PacerScreen(viewModel: PacerViewModel, modifier: Modifier = Modifier) {
PRESETS.forEach { preset ->
OutlinedButton(
onClick = { viewModel.updateBpm(preset) },
modifier = Modifier.size(width = 52.dp, height = 36.dp),
contentPadding = androidx.compose.foundation.layout.PaddingValues(0.dp),
colors = ButtonDefaults.outlinedButtonColors(
contentColor = if (bpm == preset) BG else GREEN,
containerColor = if (bpm == preset) GREEN else Color.Transparent