From a79b975188dc2a3a8578d8e728d4452a3eefda14 Mon Sep 17 00:00:00 2001 From: FredApps <153173854+FredApps@users.noreply.github.com> Date: Fri, 20 Nov 2026 23:10:52 +0100 Subject: [PATCH] tile: no card frame over a flat thumbnail The new frame over a card's picture also drew on flat thumbnails, which have no sunken well to restore: the New Document preset cards gained a second outline around their page, and form_dialogs::new_document::recent_preset_cards_paint_one_small_page_at_its_aspect failed on every leg. Frame only where the sunken well was painted. Co-Authored-By: Claude Opus 5.5 --- crates/ui-widgets/src/tile_grid/tile.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/ui-widgets/src/tile_grid/tile.rs b/crates/ui-widgets/src/tile_grid/tile.rs index baa1f213d..26d7cd831 100644 --- a/crates/ui-widgets/src/tile_grid/tile.rs +++ b/crates/ui-widgets/src/tile_grid/tile.rs @@ -862,7 +862,9 @@ impl Component for Tile<'_> { ui.draw().fill(&PaintShape::Rect(picture, flat), placeholder); } } - let framed = style.sizes.card && (self.first.is_some() || self.picture.is_some()); + // Only over the sunken well: a flat thumbnail (a page outline on the card, as the New Document presets draw) + // has no well and takes no frame. + let framed = style.sizes.card && !self.flat_thumbnail && (self.first.is_some() || self.picture.is_some()); if let Some(paint) = self.first.take() { let _ = ui.child("picture", picture, RowThumb::new(paint)); }