From c003414fe96cbb26bb963b87e930bed897cc32a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Wed, 12 Aug 2026 22:17:48 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(ui):=20the=20library=20still?= =?UTF-8?q?=20lists=20what=20was=20imported=20at=20the=20640x360=20floor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Five stacked things in that column want 140 px and the floor gives the region 136, so the one child allowed to shrink -- the media list -- was shrunk to nothing: tabs, an Import button, a dimmed way to add at the playhead, and no sign of the file that had just been imported. Found by photographing the floor, not by reading the layout. The list keeps a row's height at minimum and the column carries the remainder on its own scroll, which is the answer the lanes and the inspector already give. Everything in it stays reachable; nothing is clipped. --- crates/app/src/ui/library.rs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/crates/app/src/ui/library.rs b/crates/app/src/ui/library.rs index e83590e..f3182a7 100644 --- a/crates/app/src/ui/library.rs +++ b/crates/app/src/ui/library.rs @@ -212,6 +212,7 @@ impl Player { }) .collect(); div() + .id("library") .flex_none() .w(px(width)) .h_full() @@ -220,6 +221,14 @@ impl Player { .gap(px(6.)) .p(px(8.)) .bg(rgb(BG_PANEL)) + // The column itself scrolls at a short window. Its five stacked + // things want 140 px and the 640x360 floor gives the region 136, so + // the list -- the only child that may shrink -- was being squeezed to + // nothing: tabs, an Import button, a way to add at the playhead, and + // no sight of what had been imported. Everything keeps its own size + // and the column carries the remainder, which is the same answer the + // lanes and the inspector give. + .overflow_y_scroll() .child( div() .flex_none() @@ -299,7 +308,9 @@ impl Player { div() .id("library-rows") .flex_1() - .min_h(px(0.)) + // Never nothing: a media list with no room left is a library + // column that has stopped being a library column. + .min_h(px(ROW_H)) .flex() .flex_col() .gap(px(2.))