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:
parent
bac2e59eac
commit
e278410fbc
3 changed files with 33 additions and 14 deletions
|
@ -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(),
|
||||
}),
|
||||
),
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue