tabs: use relative line height for tab labels

This commit is contained in:
2026-11-16 04:46:26 +07:00
parent 61e4c2a770
commit 1cb86c497a
+2 -1
View File
@@ -7,7 +7,7 @@ use gpui::{
AnyElement, App, AppContext as _, Bounds, ClickEvent, Context, Div, ElementId, Global,
InteractiveElement as _, IntoElement, KeyDownEvent, MouseButton, ParentElement as _, Pixels,
Point, Render, RenderOnce, Role, SharedString, Stateful, StatefulInteractiveElement as _,
Styled as _, Window, canvas, div, px,
Styled as _, Window, canvas, div, px, relative,
};
use gpui_native_core::button::{Button, ButtonVariant};
use gpui_native_core::common::{Sizable as _, v_flex};
@@ -1000,6 +1000,7 @@ impl Tab {
.role(Role::Tab)
.aria_selected(selected)
.text_color(label_color)
.line_height(relative(1.0))
.when(!self.disabled && !active, |strip_tab| {
strip_tab.hover(|strip_tab| strip_tab.bg(theme.colors.muted))
})