From ca32ee03becd2b9c6b7f1fb71c19839b3d9fb7d7 Mon Sep 17 00:00:00 2001 From: aiongg Date: Fri, 13 Nov 2026 16:06:53 +0000 Subject: [PATCH] TileGrid: group headers are as high as the grid's other rows (a heading row), not a panel title --- crates/ui-widgets/src/tile_grid/grid.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/ui-widgets/src/tile_grid/grid.rs b/crates/ui-widgets/src/tile_grid/grid.rs index 9e52bdae3..c89da6b50 100644 --- a/crates/ui-widgets/src/tile_grid/grid.rs +++ b/crates/ui-widgets/src/tile_grid/grid.rs @@ -142,7 +142,8 @@ struct GridSizes { thumbs: [f32; 3], /// What a tile adds around its picture. around: AroundPicture, - /// The gaps of the arrangement and the height of a group header, for captioned tiles and for bare ones. + /// The gaps of the arrangement and the height of a group header (a heading row, as high as the grid's other rows), + /// for captioned tiles and for bare ones. spacing: ArrangeSpacing, bare_spacing: ArrangeSpacing, } @@ -152,7 +153,7 @@ impl GridSizes { let spacing = ArrangeSpacing::new( if card { cx.tokens.space.gap.section } else { cx.tokens.space.gap.stack }, cx.tokens.space.gap.inline, - cx.tokens.size.panel_header, + ListRow::row_height(cx, ThumbSize::None, false), ); GridSizes { card: cx.tokens.size.thumb.card,