The equalizer card stays inside the window
Browse files at this commit33db3c025b5a85d26932f9c59f5e69a6b9a94ae3Parent: cd9aea8- fix
- the equalizer card stays inside the window
1 changed file +12 -1
- crates/app/src/ui/cards.rs +12 -1
crates/app/src/ui/cards.rsmodified+12 -1
| @@ -763,7 +763,14 @@ impl Player { | |||
| 763 | ) | 763 | ) |
| 764 | .child( | 764 | .child( |
| 765 | div() | 765 | div() |
| 766 | - .w(px(eq_card_w(f32::from(viewport.width)))) | 766 | + // A cap, not a width: the card is docked in the |
| 767 | + // inspector now, and that column is narrower than the | ||
| 768 | + // floor a graph wants -- asking for [`eq_card_w`] | ||
| 769 | + // outright hung the card's right-hand third off the edge | ||
| 770 | + // of the window. The two cards beside it are built this | ||
| 771 | + // way for the same reason. | ||
| 772 | + .w_full() | ||
| 773 | + .max_w(px(eq_card_w(f32::from(viewport.width)))) | ||
| 767 | .on_mouse_down(MouseButton::Left, swallow) | 774 | .on_mouse_down(MouseButton::Left, swallow) |
| 768 | .flex() | 775 | .flex() |
| 769 | .flex_col() | 776 | .flex_col() |
| @@ -899,6 +906,10 @@ impl Player { | |||
| 899 | let row = div() | 906 | let row = div() |
| 900 | .flex_none() | 907 | .flex_none() |
| 901 | .flex() | 908 | .flex() |
| 909 | + // Three numbers and their steppers are wider than the inspector | ||
| 910 | + // column: without this the Q pair and the flatten button hang off | ||
| 911 | + // the card, which off the right-hand column means off the window. | ||
| 912 | + .flex_wrap() | ||
| 902 | .items_center() | 913 | .items_center() |
| 903 | .gap(px(10.)) | 914 | .gap(px(10.)) |
| 904 | .px(px(6.)) | 915 | .px(px(6.)) |