Keep portrait frames for Organize pages

This commit is contained in:
Dylan M. Taylor
2026-11-21 15:52:58 -05:00
parent f6f56c94d9
commit 037eeb7ffc
+3 -1
View File
@@ -454,7 +454,9 @@ impl<'a> PageThumbnails<'a> {
// The New Slide row's key comes after the pages' and the section headers'.
let new_page = count + groups.len();
let tail: Vec<TailRow<usize>> = if new_page_row { vec![TailRow::new(new_page, words.new_page.clone())] } else { Vec::new() };
let aspect = if count == 0 { 1.0 } else { aspect_of(source, 0) };
// Organize uses a portrait page frame for every page, so landscape pages fit inside it
// instead of collapsing the room reserved for the controls around the picture.
let aspect = if organize { 0.75 } else if count == 0 { 1.0 } else { aspect_of(source, 0) };
let mut grid = TileGrid::<usize>::new(label)
.id_source(id)
.selection(Bind::bound(&mut *picked))