Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Don't have contacts popover affect appearance of Share/Unshare button
Julia14ef0edd7ffc
diff --git a/crates/collab_ui/src/collab_titlebar_item.rs b/crates/collab_ui/src/collab_titlebar_item.rsindex 5e992ae559a..b0b734f9cfd 100644--- a/crates/collab_ui/src/collab_titlebar_item.rs+++ b/crates/collab_ui/src/collab_titlebar_item.rs@@ -459,9 +459,7 @@ impl CollabTitlebarItem {.with_child(MouseEventHandler::<ShareUnshare>::new(0, cx, |state, _| {//TODO: Ensure this button has consistant width for both text variations- let style = titlebar- .share_button- .style_for(state, self.contacts_popover.is_some());+ let style = titlebar.share_button.style_for(state, false);Label::new(label, style.text.clone()).contained().with_style(style.container)