From 926de77967efd9a79aa29a16ba29af5d4f3704c5 Mon Sep 17 00:00:00 2001 From: Jason Lee Date: Sun, 1 Sep 2024 21:58:50 +0800 Subject: [PATCH] Fix tooltip padding. (#198) --- crates/ui/src/tooltip.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/ui/src/tooltip.rs b/crates/ui/src/tooltip.rs index 51241281..97569b73 100644 --- a/crates/ui/src/tooltip.rs +++ b/crates/ui/src/tooltip.rs @@ -28,8 +28,7 @@ impl Render for Tooltip { .border_color(cx.theme().border) .shadow_md() .rounded(px(6.)) - .pt_1() - .pb_0p5() + .py_0p5() .px_2() .text_sm() .child(self.text.clone()),