Skip to content

Commit 7c07e32

Browse files
committed
tooltip: line_height
1 parent ee389aa commit 7c07e32

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/widget/tooltip.rs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,14 @@ pub fn tooltip<'a, Message: 'a>(
1313
match tooltip {
1414
Some(tooltip) => iced::widget::tooltip(
1515
content,
16-
container(text(tooltip).style(theme::text::secondary).font_maybe(
17-
theme::font_style::secondary(theme).map(font::get),
18-
))
16+
container(
17+
text(tooltip)
18+
.style(theme::text::secondary)
19+
.line_height(font::line_height())
20+
.font_maybe(
21+
theme::font_style::secondary(theme).map(font::get),
22+
),
23+
)
1924
.style(theme::container::tooltip)
2025
.padding(8),
2126
position,

0 commit comments

Comments
 (0)