The library still lists what was imported at the 640x360 floor
Browse files at this commitc003414fe96cbb26bb963b87e930bed897cc32a2Parent: 5a36eae- fix
- the library still lists what was imported at the 640x360 floor
1 changed file +12 -1
- crates/app/src/ui/library.rs +12 -1
crates/app/src/ui/library.rsmodified+12 -1
| @@ -212,6 +212,7 @@ impl Player { | ||
| 212 | 212 | }) |
| 213 | 213 | .collect(); |
| 214 | 214 | div() |
| 215 | + .id("library") | |
| 215 | 216 | .flex_none() |
| 216 | 217 | .w(px(width)) |
| 217 | 218 | .h_full() |
| @@ -220,6 +221,14 @@ impl Player { | ||
| 220 | 221 | .gap(px(6.)) |
| 221 | 222 | .p(px(8.)) |
| 222 | 223 | .bg(rgb(BG_PANEL)) |
| 224 | + // The column itself scrolls at a short window. Its five stacked | |
| 225 | + // things want 140 px and the 640x360 floor gives the region 136, so | |
| 226 | + // the list -- the only child that may shrink -- was being squeezed to | |
| 227 | + // nothing: tabs, an Import button, a way to add at the playhead, and | |
| 228 | + // no sight of what had been imported. Everything keeps its own size | |
| 229 | + // and the column carries the remainder, which is the same answer the | |
| 230 | + // lanes and the inspector give. | |
| 231 | + .overflow_y_scroll() | |
| 223 | 232 | .child( |
| 224 | 233 | div() |
| 225 | 234 | .flex_none() |
| @@ -299,7 +308,9 @@ impl Player { | ||
| 299 | 308 | div() |
| 300 | 309 | .id("library-rows") |
| 301 | 310 | .flex_1() |
| 302 | - .min_h(px(0.)) | |
| 311 | + // Never nothing: a media list with no room left is a library | |
| 312 | + // column that has stopped being a library column. | |
| 313 | + .min_h(px(ROW_H)) | |
| 303 | 314 | .flex() |
| 304 | 315 | .flex_col() |
| 305 | 316 | .gap(px(2.)) |