From 33db3c025b5a85d26932f9c59f5e69a6b9a94ae3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Thu, 13 Aug 2026 01:11:50 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(ui):=20the=20equalizer=20car?= =?UTF-8?q?d=20stays=20inside=20the=20window?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The card is docked in the inspector now, and it was still asking for `eq_card_w` of the room outright -- a floor of 480 px in a column of 307 at 1280x720, so a third of the card hung off the right edge of the window with the Q stepper and the spectrum switch on it. A cap over `w_full`, which is how the two cards beside it are built, and the row of numbers wraps rather than running past the edge it is capped to. --- crates/app/src/ui/cards.rs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/crates/app/src/ui/cards.rs b/crates/app/src/ui/cards.rs index 0d20900..f7ea60b 100644 --- a/crates/app/src/ui/cards.rs +++ b/crates/app/src/ui/cards.rs @@ -763,7 +763,14 @@ impl Player { ) .child( div() - .w(px(eq_card_w(f32::from(viewport.width)))) + // A cap, not a width: the card is docked in the + // inspector now, and that column is narrower than the + // floor a graph wants -- asking for [`eq_card_w`] + // outright hung the card's right-hand third off the edge + // of the window. The two cards beside it are built this + // way for the same reason. + .w_full() + .max_w(px(eq_card_w(f32::from(viewport.width)))) .on_mouse_down(MouseButton::Left, swallow) .flex() .flex_col() @@ -899,6 +906,10 @@ impl Player { let row = div() .flex_none() .flex() + // Three numbers and their steppers are wider than the inspector + // column: without this the Q pair and the flatten button hang off + // the card, which off the right-hand column means off the window. + .flex_wrap() .items_center() .gap(px(10.)) .px(px(6.))