Make FacePile a component again (#4143)

This PR turns `FacePile` back into a component.

Our usage of it seemed a little weird, with us calling `render`
manually.

We're now implementing `Styled` on `FacePile` through its inner `Div` so
that we can apply the `p_1` at the call site.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2024-01-18 20:49:51 -05:00 committed by GitHub
parent bac2e59eac
commit e278410fbc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 33 additions and 14 deletions

View file

@ -495,7 +495,7 @@ impl CollabTitlebarItem {
div.rounded_md().bg(color)
})
.child(
FacePile::default()
FacePile::empty()
.child(
Avatar::new(user.avatar_uri.clone())
.grayscale(!is_present)
@ -547,8 +547,7 @@ impl CollabTitlebarItem {
)
} else {
None
})
.render(),
}),
),
)
}