Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Order face pile front to back, left to right

Max Brunsfeld901bd6ac87b6
diff --git a/crates/collab_ui2/src/face_pile.rs b/crates/collab_ui2/src/face_pile.rs
index 6c424c78051..52b30062ea9 100644
--- a/crates/collab_ui2/src/face_pile.rs
+++ b/crates/collab_ui2/src/face_pile.rs
@@ -16,7 +16,10 @@ impl RenderOnce for FacePile {
let player_list = self.faces.into_iter().enumerate().map(|(ix, player)| {
let isnt_last = ix < player_count - 1;
- div().when(isnt_last, |div| div.neg_mr_1()).child(player)
+ div()
+ .z_index((player_count - ix) as u32)
+ .when(isnt_last, |div| div.neg_mr_1())
+ .child(player)
});
div().p_1().flex().items_center().children(player_list)
}