Merge pull request #2382 from zed-industries/dont-have-contacts-popover-affect-share-unshare-button

Don't have contacts popover affect appearance of Share/Unshare button
This commit is contained in:
Julia 2023-04-17 14:18:39 -04:00 committed by GitHub
commit 4adc92b8e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)