1
0
Fork 0

Make Automation Precision slider less wide

This commit is contained in:
Robbert van der Helm 2022-11-07 15:17:16 +01:00
parent 8f02cdc1fa
commit c1573f47c3
2 changed files with 7 additions and 1 deletions

View file

@ -83,7 +83,8 @@ fn top_bar(cx: &mut Context) {
HStack::new(cx, |cx| {
ParamSlider::new(cx, Data::params, |params| &params.automation_precision)
.with_label("Automation Precision");
.with_label("Automation Precision")
.id("automation-precision");
SafeModeButton::new(cx, Data::safe_mode, "Safe mode").left(Pixels(10.0));

View file

@ -17,3 +17,8 @@ param-button.safe-mode:checked {
background-color: #fff280;
transition: background-color 0.1 0;
}
#automation-precision {
/* Can't use width: auto here, but we'll try to roughly match the padding of the top bar buttons */
width: 170px;
}