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:
parent
3f38737a30
commit
4fa725e4ed
1 changed files with 2 additions and 0 deletions
|
|
@ -156,6 +156,8 @@ fun PacerScreen(viewModel: PacerViewModel, modifier: Modifier = Modifier) {
|
||||||
PRESETS.forEach { preset ->
|
PRESETS.forEach { preset ->
|
||||||
OutlinedButton(
|
OutlinedButton(
|
||||||
onClick = { viewModel.updateBpm(preset) },
|
onClick = { viewModel.updateBpm(preset) },
|
||||||
|
modifier = Modifier.size(width = 52.dp, height = 36.dp),
|
||||||
|
contentPadding = androidx.compose.foundation.layout.PaddingValues(0.dp),
|
||||||
colors = ButtonDefaults.outlinedButtonColors(
|
colors = ButtonDefaults.outlinedButtonColors(
|
||||||
contentColor = if (bpm == preset) BG else GREEN,
|
contentColor = if (bpm == preset) BG else GREEN,
|
||||||
containerColor = if (bpm == preset) GREEN else Color.Transparent
|
containerColor = if (bpm == preset) GREEN else Color.Transparent
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue