From 086f5513ce49682280d36b1dfa86a161fac04a17 Mon Sep 17 00:00:00 2001 From: jackwener Date: Tue, 7 Jul 2026 17:46:26 +0800 Subject: [PATCH] =?UTF-8?q?fix(ui):=20detail-audit=20round=202=20=E2=80=94?= =?UTF-8?q?=20bordered=20actions,=20aligned=20switches,=20de-greened=20emp?= =?UTF-8?q?hasis=20cards?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes from the control-form detail sweep of all 7 settings pages (user report: many actions render as bare borderless text, 'like there are no components'): - memory page: killed the .settingsInlineTextButton antipattern (border:0 padding:0 → naked link text) — 10 call sites become outline sm buttons; 添加到草稿 ghost → secondary; the MEMORY.md path/status strip gets a quiet filled container instead of floating bare between cards. - green-as-emphasis family: 关于 privacy card + 数据 import/export card wore --success green as section emphasis (non-status use, residual brand-green) → brand-deep family. - 数据 page actions: one row instead of a broken two-row wrap; 打开工作区 文件夹 demoted from primary to secondary (utility), 清空输入历史 gets destructive red-outline semantics (same recipe as the permission dialog). - 每日回顾 settings: switches end-align with every other row control (they sat mid-page at the value column start); the always-on dashed feature banner is gone — the informative sentence became the page subtitle, and only the not-wired fallback state still shows a banner (solid border; dashed was the app's only dashed language). - 机器人对话: status mini-cards use auto-fit (no more 4+1 orphan row); the .settingsBotAction pill re-skin (radius-pill + raw accent chrome smuggled through theme-preview.css's governance allowlist) removed — 测试并连接/重启 render as standard secondary chips. Screenshot-verified per page. 2149/2149; typecheck 0; dead-css diff-clean. --- .../settings/bot-chat-settings-page.tsx | 15 +++---- .../settings/daily-review-settings-page.tsx | 18 ++++----- .../renderer/settings/data-settings-page.tsx | 11 +++-- .../settings/memory-settings-page.tsx | 40 +++++++++---------- .../src/renderer/settings/settings-nav.ts | 2 +- .../src/renderer/styles/settings/bot.css | 11 ++++- .../renderer/styles/settings/connection.css | 10 ----- .../src/renderer/styles/settings/memory.css | 11 ++--- .../renderer/styles/settings/nav-sidebar.css | 2 +- .../styles/settings/theme-preview.css | 38 +++++------------- 10 files changed, 70 insertions(+), 88 deletions(-) diff --git a/apps/desktop/src/renderer/settings/bot-chat-settings-page.tsx b/apps/desktop/src/renderer/settings/bot-chat-settings-page.tsx index 9169b43669..165b5519b7 100644 --- a/apps/desktop/src/renderer/settings/bot-chat-settings-page.tsx +++ b/apps/desktop/src/renderer/settings/bot-chat-settings-page.tsx @@ -404,11 +404,11 @@ function WeChatScanLoginModal(props: {
{(status === 'expired' || status === 'error') && ( - )} -
@@ -1128,7 +1128,7 @@ export function BotChatSettingsPage(props: { {selected === 'wechat' ? ( <> - -