Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Avoid duplicate render of a pane when it is zoomed
Max Brunsfelda5e037befa70
diff --git a/crates/workspace2/src/pane_group.rs b/crates/workspace2/src/pane_group.rsindex 4f29f08ef26..b52cec2b188 100644--- a/crates/workspace2/src/pane_group.rs+++ b/crates/workspace2/src/pane_group.rs@@ -172,6 +172,10 @@ impl Member {) -> impl IntoElement {match self {Member::Pane(pane) => {+ if zoomed == Some(&pane.downgrade().into()) {+ return div().into_any();+ }+let leader = follower_states.get(pane).and_then(|state| {let room = active_call?.read(cx).room()?.read(cx);room.remote_participant_for_peer_id(state.leader_id)