From 1cb86c497afd7624e2a1fe79091e0f4604e6afe3 Mon Sep 17 00:00:00 2001 From: Ren Amamiya Date: Mon, 16 Nov 2026 04:46:26 +0700 Subject: [PATCH] tabs: use relative line height for tab labels --- crates/data/src/tabs.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/data/src/tabs.rs b/crates/data/src/tabs.rs index 0739d78..24154f2 100644 --- a/crates/data/src/tabs.rs +++ b/crates/data/src/tabs.rs @@ -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)) })