From 74265cded4372af60c6d80129dd4eb5aaea29f16 Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Wed, 18 Nov 2026 05:30:18 -0500 Subject: [PATCH] pdf-chrome-w2: review fixes (review-2) --- crates/ui-widgets/src/display/picture.rs | 29 ++++++++++++++++--- .../ui-widgets/src/display/picture/stories.rs | 9 ++++++ crates/ui-widgets/tests/it/picture.rs | 18 ++++++++++++ 3 files changed, 52 insertions(+), 4 deletions(-) diff --git a/crates/ui-widgets/src/display/picture.rs b/crates/ui-widgets/src/display/picture.rs index c1936b9b3..94b191d6a 100644 --- a/crates/ui-widgets/src/display/picture.rs +++ b/crates/ui-widgets/src/display/picture.rs @@ -67,9 +67,10 @@ pub struct Picture<'a> { #[prop] revision: Revision, source: Source<'a>, - /// The width of the picture's rect as a multiple of its height. + /// The width of the picture's rect as a multiple of its height. Unset, an SVG takes its view box's aspect and any + /// other source a square. #[prop] - aspect: ThumbAspect, + aspect: Option, /// The picture's height. #[style_key] #[prop] @@ -96,7 +97,16 @@ impl<'a> Picture<'a> { } fn from_source(label: impl Into