Always show channel toggle when collapsed (#3698)

This PR makes the channel toggle disclosure always visible when a
channel tree is collapsed, as opposed to just being visible on hover.

This makes it possible to visually identify collapsed channel trees
without having to hover over each entry.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2023-12-18 13:27:47 -05:00 committed by GitHub
parent f143467478
commit 0aa690f915
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -192,7 +192,7 @@ impl RenderOnce for ListItem {
.flex()
.absolute()
.left(rems(-1.))
.visible_on_hover("")
.when(is_open, |this| this.visible_on_hover(""))
.child(Disclosure::new(is_open).on_toggle(self.on_toggle))
}))
.child(