WIP: preserve aspect ratio of images

This commit is contained in:
Antonio Scandurra
2023-11-28 17:33:11 +01:00
parent 600b564bbf
commit 3ac545088a
4 changed files with 87 additions and 58 deletions
+1 -1
View File
@@ -72,7 +72,7 @@ impl Render for SharedScreen {
// self.current_frame_id = self.current_frame_id.wrapping_add(1);
div()
.size_full()
.children(frame.map(|frame| img().size_full().surface(frame.image())))
.children(frame.map(|frame| img(frame.image()).w_full()))
}
}
// impl View for SharedScreen {