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
Generated
+1
View File
@@ -10163,6 +10163,7 @@ dependencies = [
"simplelog",
"smallvec",
"tokio-tungstenite 0.26.2",
"ui",
"util",
"workspace-hack",
]
+1
View File
@@ -41,6 +41,7 @@ serde_urlencoded.workspace = true
settings.workspace = true
smallvec.workspace = true
tokio-tungstenite.workspace = true
ui.workspace = true
util.workspace = true
workspace-hack.workspace = true
@@ -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();
}