Add back negative margins, now that they're supported again

This commit is contained in:
Marshall Bowers 2023-10-09 12:33:30 -04:00
parent a7c4ae530d
commit 19434afe0a
3 changed files with 3 additions and 12 deletions

View file

@ -24,8 +24,7 @@ impl<S: 'static + Send + Sync> Facepile<S> {
let isnt_last = ix < player_count - 1;
div()
// TODO: Blocked on negative margins.
// .when(isnt_last, |div| div.neg_mr_1())
.when(isnt_last, |div| div.neg_mr_1())
.child(Avatar::new(player.avatar_src().to_string()))
});
div().p_1().flex().items_center().children(player_list)