From 07c4aa1c28071f137c179fa12a1a768ab308fe93 Mon Sep 17 00:00:00 2001 From: Forbes Date: Fri, 13 Feb 2026 14:37:40 -0600 Subject: [PATCH] fix(web): align spacing values to style guide grid (#71) - Replace 0.3rem padding/margin/gap with 0.25rem (xs) - Replace 0.2rem margins with 0.25rem (xs) - Replace 0.1rem padding with 0.15rem (badge spec) - Replace 0.6rem margins/padding with 0.5rem (sm) - Fix borderRadius 0.3rem to 0.375rem (6px per style guide) - Preserve style-guide-specified values: 0.35rem button gap, 0.4rem cell padding, 0.45rem input padding --- web/src/components/AppShell.tsx | 4 ++-- web/src/components/TagInput.tsx | 10 +++++----- web/src/components/audit/AuditDetailPanel.tsx | 12 ++++++------ web/src/components/items/BOMTab.tsx | 18 +++++++++--------- web/src/components/items/CategoryPicker.tsx | 6 +++--- web/src/components/items/CreateItemPane.tsx | 12 ++++++------ web/src/components/items/DeleteItemPane.tsx | 4 ++-- web/src/components/items/EditItemPane.tsx | 12 ++++++------ web/src/components/items/FileDropZone.tsx | 6 +++--- web/src/components/items/ImportItemsPane.tsx | 6 +++--- web/src/components/items/ItemDetail.tsx | 4 ++-- web/src/components/items/ItemTable.tsx | 2 +- web/src/components/items/MainTab.tsx | 16 ++++++++-------- web/src/components/items/PropertiesTab.tsx | 10 +++++----- web/src/components/items/RevisionsTab.tsx | 10 +++++----- web/src/components/items/WhereUsedTab.tsx | 2 +- web/src/pages/ProjectsPage.tsx | 2 +- web/src/pages/SchemasPage.tsx | 6 +++--- web/src/pages/SettingsPage.tsx | 6 +++--- 19 files changed, 74 insertions(+), 74 deletions(-) diff --git a/web/src/components/AppShell.tsx b/web/src/components/AppShell.tsx index c81dabd..843bc68 100644 --- a/web/src/components/AppShell.tsx +++ b/web/src/components/AppShell.tsx @@ -113,9 +113,9 @@ export function AppShell() { onClick={toggleDensity} title={`Switch to ${density === "comfortable" ? "compact" : "comfortable"} view`} style={{ - padding: "0.2rem 0.5rem", + padding: "0.25rem 0.5rem", fontSize: "var(--font-sm)", - borderRadius: "0.3rem", + borderRadius: "0.375rem", cursor: "pointer", border: "1px solid var(--ctp-surface1)", background: "var(--ctp-surface0)", diff --git a/web/src/components/TagInput.tsx b/web/src/components/TagInput.tsx index 2da2439..39b3322 100644 --- a/web/src/components/TagInput.tsx +++ b/web/src/components/TagInput.tsx @@ -124,7 +124,7 @@ export function TagInput({ padding: "0.25rem 0.5rem", backgroundColor: "var(--ctp-base)", border: "1px solid var(--ctp-surface1)", - borderRadius: "0.3rem", + borderRadius: "0.375rem", cursor: "text", minHeight: "1.8rem", }} @@ -137,7 +137,7 @@ export function TagInput({ display: "inline-flex", alignItems: "center", gap: "0.25rem", - padding: "0.1rem 0.5rem", + padding: "0.15rem 0.5rem", borderRadius: "1rem", backgroundColor: "rgba(203,166,247,0.15)", color: "var(--ctp-mauve)", @@ -187,7 +187,7 @@ export function TagInput({ background: "transparent", color: "var(--ctp-text)", fontSize: "var(--font-body)", - padding: "0.1rem 0", + padding: "0.15rem 0", }} /> @@ -199,10 +199,10 @@ export function TagInput({ left: 0, right: 0, zIndex: 10, - marginTop: "0.2rem", + marginTop: "0.25rem", backgroundColor: "var(--ctp-surface0)", border: "1px solid var(--ctp-surface1)", - borderRadius: "0.3rem", + borderRadius: "0.375rem", maxHeight: "160px", overflowY: "auto", }} diff --git a/web/src/components/audit/AuditDetailPanel.tsx b/web/src/components/audit/AuditDetailPanel.tsx index f87df62..6e013c6 100644 --- a/web/src/components/audit/AuditDetailPanel.tsx +++ b/web/src/components/audit/AuditDetailPanel.tsx @@ -361,7 +361,7 @@ function FieldGroup({
0 && (
+