Cargo.lock 🔗
@@ -10163,6 +10163,7 @@ dependencies = [
"simplelog",
"smallvec",
"tokio-tungstenite 0.26.2",
+ "ui",
"util",
"workspace-hack",
]
Piotr Osiewicz created
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.
Cargo.lock | 1 +
crates/livekit_client/Cargo.toml | 1 +
crates/livekit_client/src/remote_video_track_view.rs | 4 +++-
3 files changed, 5 insertions(+), 1 deletion(-)
@@ -10163,6 +10163,7 @@ dependencies = [
"simplelog",
"smallvec",
"tokio-tungstenite 0.26.2",
+ "ui",
"util",
"workspace-hack",
]
@@ -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();
}