fn collect_row_indices( dims: &[(u32, u32)], start: usize, canvas_w: f32, cfg: LayoutConfig, ) -> (Vec<usize>, usize)
Greedily collect item indices that fit into a single row at max height.