From 0aa690f915067ada7de8ab9902cf3f1b8acc681d Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Mon, 18 Dec 2023 13:27:47 -0500 Subject: [PATCH] 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 --- crates/ui2/src/components/list/list_item.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ui2/src/components/list/list_item.rs b/crates/ui2/src/components/list/list_item.rs index 481d96d242..a8ca45d1d7 100644 --- a/crates/ui2/src/components/list/list_item.rs +++ b/crates/ui2/src/components/list/list_item.rs @@ -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(