From f5abe8b50964b7660e91fc04ba5d35957d13b338 Mon Sep 17 00:00:00 2001 From: l0ng-ai Date: Fri, 4 Dec 2026 08:32:26 +0800 Subject: [PATCH] fix(web): style the open-file confirmation with declared tokens (#7896) The /api/file confirmation read --bg-surface, which no theme declares (customProperties.test.ts failed on main), and used fixed sizes; it now uses --bg-input and the spacing, radius and font-size tokens. --- src/features/web/Web.module.css | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/features/web/Web.module.css b/src/features/web/Web.module.css index 44cfd69ffb..a3509c93c6 100644 --- a/src/features/web/Web.module.css +++ b/src/features/web/Web.module.css @@ -38,16 +38,16 @@ .confirmBody { display: flex; flex-direction: column; - gap: 10px; - font-size: var(--font-size-ui, 13px); + gap: var(--space-2); + font-size: var(--fs-ui); line-height: 1.5; } .confirmPath { - padding: 6px 8px; - border-radius: 4px; - background: var(--bg-input, var(--bg-surface)); + padding: var(--space-1-5) var(--space-2); + border-radius: var(--radius-small); + background: var(--bg-input); border: 1px solid var(--border); font-family: var(--font-mono); - font-size: 12px; + font-size: var(--fs-code); word-break: break-all; }