From 9ae96d7351b25e683a9e2c894e0ca0b8af879935 Mon Sep 17 00:00:00 2001 From: xuelongmu Date: Tue, 8 Sep 2026 00:12:38 -0400 Subject: [PATCH 1/3] Use Windows typography and fix control layout --- .../src/components/FormControls.tsx | 9 +- apps/desktop-tauri/src/floatbar/FloatBar.css | 2 +- apps/desktop-tauri/src/styles.css | 85 ++++++++++++++++--- .../settings/tabs/GeneralTab.test.tsx | 4 +- 4 files changed, 75 insertions(+), 25 deletions(-) diff --git a/apps/desktop-tauri/src/components/FormControls.tsx b/apps/desktop-tauri/src/components/FormControls.tsx index cf1df7a469..ac4db05d7d 100644 --- a/apps/desktop-tauri/src/components/FormControls.tsx +++ b/apps/desktop-tauri/src/components/FormControls.tsx @@ -51,17 +51,10 @@ export function Select({ ariaLabel?: string; minWidth?: number; }) { - const selectedLabel = options.find((option) => option.value === value)?.label ?? value; - const calculatedWidth = Math.min( - 128, - Math.max(48, Math.ceil((selectedLabel ?? "").length * 6.8) + 18), - ); - const width = Math.max(calculatedWidth, minWidth ?? 0); - return (