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