From 2e2a13faaf340b37a30a4fdebb95fa03f31d23b3 Mon Sep 17 00:00:00 2001 From: divadiahim <53019161+divadiahim@users.noreply.github.com> Date: Mon, 10 Feb 2025 06:32:53 +0100 Subject: [PATCH] Added constraint to volume slider text (#585) --- psst-gui/src/ui/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/psst-gui/src/ui/mod.rs b/psst-gui/src/ui/mod.rs index 180f3e3d..02c56ed7 100644 --- a/psst-gui/src/ui/mod.rs +++ b/psst-gui/src/ui/mod.rs @@ -455,7 +455,8 @@ fn volume_slider() -> impl Widget { .with_child( Label::dynamic(|&volume: &f64, _| format!("{}%", (volume * 100.0).floor())) .with_text_color(theme::PLACEHOLDER_COLOR) - .with_text_size(theme::TEXT_SIZE_SMALL), + .with_text_size(theme::TEXT_SIZE_SMALL) + .fix_width(theme::grid(4.0)), ) .padding((theme::grid(2.0), 0.0)) .on_debounce(SAVE_DELAY, |ctx, _, _| ctx.submit_command(SAVE_TO_CONFIG))