collab: Fix screen share aspect ratio on non-Mac platforms (#38517)

It was just a bunch of finnickery around UI layout. It affected Linux
too.



Release Notes:

* Fixed aspect ratio of peer screen share when using Linux/Windows
builds.
This commit is contained in:
Piotr Osiewicz
2025-09-19 18:38:22 +02:00
committed by GitHub
parent df6f0bc2a7
commit b9188e0fd3
3 changed files with 5 additions and 1 deletions
@@ -97,8 +97,10 @@ impl Render for RemoteVideoTrackView {
self.previous_rendered_frame = Some(current_rendered_frame)
}
self.current_rendered_frame = Some(latest_frame.clone());
return gpui::img(latest_frame.clone())
use gpui::ParentElement;
return ui::h_flex()
.size_full()
.child(gpui::img(latest_frame.clone()).size_full())
.into_any_element();
}