Store a z-index id per-layer

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Julia
2024-01-22 10:16:59 -05:00
co-authored by Nathan Sobo
parent 5b906e731d
commit 2c3d9805a4
9 changed files with 50 additions and 49 deletions
+1 -1
View File
@@ -28,7 +28,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)
});