From f83de0a91cfba22609f0784fdff1e13b2a7f1355 Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Tue, 11 Oct 2022 17:30:17 +0200 Subject: [PATCH] Respect contacts popover size --- crates/collab_ui/src/collab_titlebar_item.rs | 1 + styles/src/styleTree/contactsPopover.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/crates/collab_ui/src/collab_titlebar_item.rs b/crates/collab_ui/src/collab_titlebar_item.rs index a2d7249b57..9faea76a10 100644 --- a/crates/collab_ui/src/collab_titlebar_item.rs +++ b/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(), ) diff --git a/styles/src/styleTree/contactsPopover.ts b/styles/src/styleTree/contactsPopover.ts index 957f3d6c8d..2e70b3daea 100644 --- a/styles/src/styleTree/contactsPopover.ts +++ b/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,