From c7857fdfc97bce01d870a7e2c63074aeb1af8fc7 Mon Sep 17 00:00:00 2001 From: Forbes Date: Sat, 14 Feb 2026 13:36:07 -0600 Subject: [PATCH] fix(web): standardize font sizes to style guide scale MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Map fontWeight: 700 → 600 in non-title contexts (LoginPage, FileDropZone). Align FileDropZone badge padding to 4px grid. Closes #70 --- web/src/components/items/FileDropZone.tsx | 10 +++++----- web/src/pages/LoginPage.tsx | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/web/src/components/items/FileDropZone.tsx b/web/src/components/items/FileDropZone.tsx index a327796..f1b0acb 100644 --- a/web/src/components/items/FileDropZone.tsx +++ b/web/src/components/items/FileDropZone.tsx @@ -143,8 +143,8 @@ function FileRow({ display: "flex", alignItems: "center", gap: "0.5rem", - padding: "0.25rem 0.4rem", - borderRadius: "0.375rem", + padding: "0.25rem 0.5rem", + borderRadius: "0.25rem", position: "relative", }} > @@ -153,14 +153,14 @@ function FileRow({ style={{ width: 28, height: 28, - borderRadius: "0.375rem", + borderRadius: "0.25rem", backgroundColor: color, opacity: 0.8, display: "flex", alignItems: "center", justifyContent: "center", fontSize: "var(--font-xs)", - fontWeight: 700, + fontWeight: 600, color: "var(--ctp-crust)", flexShrink: 0, }} @@ -239,7 +239,7 @@ function FileRow({ cursor: "pointer", fontSize: "var(--font-table)", color: hovered ? "var(--ctp-red)" : "var(--ctp-overlay0)", - padding: "0 0.2rem", + padding: "0 0.25rem", flexShrink: 0, transition: "all 0.15s ease", }} diff --git a/web/src/pages/LoginPage.tsx b/web/src/pages/LoginPage.tsx index 899756d..f15add4 100644 --- a/web/src/pages/LoginPage.tsx +++ b/web/src/pages/LoginPage.tsx @@ -116,7 +116,7 @@ const titleStyle: React.CSSProperties = { color: "var(--ctp-mauve)", textAlign: "center", fontSize: "2rem", - fontWeight: 700, + fontWeight: 600, marginBottom: "0.25rem", }; @@ -164,7 +164,7 @@ const btnPrimaryStyle: React.CSSProperties = { display: "block", width: "100%", padding: "0.75rem 1.5rem", - borderRadius: "0.375rem", + borderRadius: "0.25rem", fontWeight: 500, fontSize: "0.75rem", cursor: "pointer", @@ -189,7 +189,7 @@ const btnOidcStyle: React.CSSProperties = { display: "block", width: "100%", padding: "0.75rem 1.5rem", - borderRadius: "0.375rem", + borderRadius: "0.25rem", fontWeight: 500, fontSize: "0.75rem", cursor: "pointer",