diff --git a/crates/collab_ui2/src/face_pile.rs b/crates/collab_ui2/src/face_pile.rs index 6c424c7805..52b30062ea 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) }