chore: replace pixel metrics with rem-based sizing across ui
Rust / build (macos-latest, stable) (push) Waiting to run
Rust / build (ubuntu-latest, stable) (push) Waiting to run
Rust / build (windows-latest, stable) (push) Waiting to run

This commit is contained in:
2026-11-19 15:47:50 +07:00
parent 5a597f43c4
commit a0f69b6450
74 changed files with 897 additions and 1090 deletions
+4 -4
View File
@@ -14,9 +14,9 @@
use gpui::prelude::FluentBuilder as _;
use gpui::{
Action, AnyElement, App, FocusHandle, FontWeight, InteractiveElement as _, IntoElement,
KeyBinding, KeyContext, Keystroke, OperatingSystem, ParentElement as _, RenderOnce,
SharedString, StyleRefinement, Styled as _, Window, div, relative,
Action, AnyElement, App, FocusHandle, InteractiveElement as _, IntoElement, KeyBinding,
KeyContext, Keystroke, OperatingSystem, ParentElement as _, RenderOnce, SharedString,
StyleRefinement, Styled as _, Window, div, relative,
};
use crate::components::common::{StyledExt as _, h_flex};
@@ -267,7 +267,7 @@ impl RenderOnce for Kbd {
.rounded(theme.radius.sm)
.text_center()
.line_height(relative(1.))
.text_size(theme.typography.caption.size)
.text_xs()
})
.refine_style(&self.style)
.child(label)