From 7286866afd2d7dfb802aafce6d20c41e3adda457 Mon Sep 17 00:00:00 2001 From: Floyd Wang Date: Thu, 29 Aug 2024 11:35:38 +0800 Subject: [PATCH] Reduce `PopoverContent` padding (#186) --- crates/ui/src/popover.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/ui/src/popover.rs b/crates/ui/src/popover.rs index 126cbcb2..fe3f2540 100644 --- a/crates/ui/src/popover.rs +++ b/crates/ui/src/popover.rs @@ -48,7 +48,10 @@ impl FocusableView for PopoverContent { impl Render for PopoverContent { fn render(&mut self, cx: &mut ViewContext) -> impl IntoElement { - div().p_4().when_some(self.max_width, |this, v| this.max_w(v)).child(self.content.clone()(cx)) + div() + .p_2() + .when_some(self.max_width, |this, v| this.max_w(v)) + .child(self.content.clone()(cx)) } }