Rework ListHeader to be more open (#3467)

This PR reworks the `ListHeader` component to be more open.

The `meta` method can now be used to append meta items of any element to
the `ListHeader`, and they will be rendered with the appropriate spacing
between them.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2023-11-30 15:55:31 -05:00 committed by GitHub
parent bd6fa66a7c
commit e5a5b1e84c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 112 additions and 99 deletions

View file

@ -2511,7 +2511,7 @@ impl CollabPanel {
} else {
el.child(
ListHeader::new(text)
.when_some(button, |el, button| el.right_button(button))
.when_some(button, |el, button| el.meta(button))
.selected(is_selected),
)
}