Reduce PopoverContent padding (#186)
This commit is contained in:
parent
f7f3fcedf3
commit
7286866afd
1 changed files with 4 additions and 1 deletions
|
|
@ -48,7 +48,10 @@ impl FocusableView for PopoverContent {
|
||||||
|
|
||||||
impl Render for PopoverContent {
|
impl Render for PopoverContent {
|
||||||
fn render(&mut self, cx: &mut ViewContext<Self>) -> impl IntoElement {
|
fn render(&mut self, cx: &mut ViewContext<Self>) -> 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))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue