Label component states in stories (#3019)
This PR updates the UI component stories to label the various states that they are in. Release Notes: - N/A
This commit is contained in:
parent
d0b15ed940
commit
27e3e09bb9
6 changed files with 53 additions and 51 deletions
|
@ -9,8 +9,10 @@ pub struct Facepile {
|
|||
players: Vec<Avatar>,
|
||||
}
|
||||
|
||||
pub fn facepile(players: Vec<Avatar>) -> Facepile {
|
||||
Facepile { players }
|
||||
pub fn facepile<P: Iterator<Item = Avatar>>(players: P) -> Facepile {
|
||||
Facepile {
|
||||
players: players.collect(),
|
||||
}
|
||||
}
|
||||
|
||||
impl Facepile {
|
||||
|
|
|
@ -46,7 +46,7 @@ impl FollowGroup {
|
|||
.px_1()
|
||||
.rounded_lg()
|
||||
.fill(player_bg)
|
||||
.child(facepile(self.players.clone())),
|
||||
.child(facepile(self.players.clone().into_iter())),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue