Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
collab: Fix screen share aspect ratio on non-Mac platforms (#38517)
Piotr Osiewiczb9188e0fd38a
diff --git a/Cargo.lock b/Cargo.lockindex ed1e9bef3f1..8fd76300f75 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -10163,6 +10163,7 @@ dependencies = ["simplelog","smallvec","tokio-tungstenite 0.26.2",+ "ui","util","workspace-hack",]diff --git a/crates/livekit_client/Cargo.toml b/crates/livekit_client/Cargo.tomlindex 80e4960c0df..2400092c1c1 100644--- a/crates/livekit_client/Cargo.toml+++ b/crates/livekit_client/Cargo.toml@@ -41,6 +41,7 @@ serde_urlencoded.workspace = truesettings.workspace = truesmallvec.workspace = truetokio-tungstenite.workspace = true+ui.workspace = trueutil.workspace = trueworkspace-hack.workspace = truediff --git a/crates/livekit_client/src/remote_video_track_view.rs b/crates/livekit_client/src/remote_video_track_view.rsindex 9073b8729a1..189806f2138 100644--- a/crates/livekit_client/src/remote_video_track_view.rs+++ b/crates/livekit_client/src/remote_video_track_view.rs@@ -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();}