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 <noreply@anthropic.com>
This commit is contained in:
FredApps
2026-11-20 23:10:52 +01:00
co-authored by Claude Opus 5.5
parent 7ee54362ae
commit a79b975188
+3 -1
View File
@@ -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));
}