Store a z-index id per-layer
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
parent
7b9e7fea4e
commit
bc2302f723
7 changed files with 46 additions and 45 deletions
|
@ -13,7 +13,7 @@ impl RenderOnce for FacePile {
|
|||
let isnt_last = ix < player_count - 1;
|
||||
|
||||
div()
|
||||
.z_index((player_count - ix) as u8)
|
||||
.z_index((player_count - ix) as u16)
|
||||
.when(isnt_last, |div| div.neg_mr_1())
|
||||
.child(player)
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue