From c1573f47c346e39631e1c630561057c958f83154 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Mon, 7 Nov 2022 15:17:16 +0100 Subject: [PATCH] Make Automation Precision slider less wide --- plugins/diopser/src/editor.rs | 3 ++- plugins/diopser/src/theme.css | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) 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; +}