tooltip: Fix Tooltip text line-height. (#304)

<img width="247" alt="image"
src="https://github.com/user-attachments/assets/483d6fed-2494-432a-81c3-59a2c220df9d">
This commit is contained in:
Jason Lee 2024-10-03 18:01:56 +08:00 committed by GitHub
parent ca5a0e02d5
commit 9a64bc43d9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -20,6 +20,7 @@ impl Render for Tooltip {
div().child(
// Wrap in a child, to ensure the left margin is applied to the tooltip
div()
.font_family(".SystemUIFont")
.m_3()
.bg(cx.theme().popover)
.text_color(cx.theme().popover_foreground)