mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-09 10:56:20 +00:00
Order face pile front to back, left to right
This commit is contained in:
parent
d1b47b4059
commit
901bd6ac87
1 changed files with 4 additions and 1 deletions
|
@ -16,7 +16,10 @@ impl RenderOnce for FacePile {
|
||||||
let player_list = self.faces.into_iter().enumerate().map(|(ix, player)| {
|
let player_list = self.faces.into_iter().enumerate().map(|(ix, player)| {
|
||||||
let isnt_last = ix < player_count - 1;
|
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)
|
div().p_1().flex().items_center().children(player_list)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue