Respect contacts popover size

Antonio Scandurra created

Change summary

crates/collab_ui/src/collab_titlebar_item.rs | 1 +
styles/src/styleTree/contactsPopover.ts      | 1 +
2 files changed, 2 insertions(+)

Detailed changes

crates/collab_ui/src/collab_titlebar_item.rs 🔗

@@ -226,6 +226,7 @@ impl CollabTitlebarItem {
                     ChildView::new(popover)
                         .contained()
                         .with_margin_top(titlebar.height)
+                        .with_margin_left(titlebar.toggle_contacts_button.default.button_width)
                         .with_margin_right(-titlebar.toggle_contacts_button.default.button_width)
                         .boxed(),
                 )

styles/src/styleTree/contactsPopover.ts 🔗

@@ -6,6 +6,7 @@ export default function contactsPopover(theme: Theme) {
     background: backgroundColor(theme, 300, "base"),
     cornerRadius: 6,
     padding: { top: 6 },
+    margin: { top: -6 },
     shadow: popoverShadow(theme),
     border: border(theme, "primary"),
     width: 300,