diff --git a/plugins/diopser/src/editor.rs b/plugins/diopser/src/editor.rs index f8fd5f43..cbb16419 100644 --- a/plugins/diopser/src/editor.rs +++ b/plugins/diopser/src/editor.rs @@ -83,7 +83,8 @@ fn top_bar(cx: &mut Context) { HStack::new(cx, |cx| { ParamSlider::new(cx, Data::params, |params| ¶ms.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)); diff --git a/plugins/diopser/src/theme.css b/plugins/diopser/src/theme.css index a2de9ee6..48effdd0 100644 --- a/plugins/diopser/src/theme.css +++ b/plugins/diopser/src/theme.css @@ -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; +}