mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-26 02:09:00 +00:00
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:
co-authored by
Claude Opus 5.5
parent
7ee54362ae
commit
a79b975188
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user