Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Always show channel toggle when collapsed (#3698)

Marshall Bowers0aa690f91506
diff --git a/crates/ui2/src/components/list/list_item.rs b/crates/ui2/src/components/list/list_item.rs
index 481d96d242e..a8ca45d1d7a 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(