From 1cd3189e8a333dac46bea58178e2b37898d06d37 Mon Sep 17 00:00:00 2001 From: Mars-Sea <1195751600@qq.com> Date: Fri, 30 Oct 2026 21:14:02 +0800 Subject: [PATCH] =?UTF-8?q?fix(client):=20=E8=AE=BE=E7=BD=AE=E9=A1=B5?= =?UTF-8?q?=E5=BC=80=E5=85=B3=E5=B0=BA=E5=AF=B8=E5=9B=9E=E5=88=B0=E5=AE=BF?= =?UTF-8?q?=E4=B8=BB=E5=8E=9F=E8=AF=AD=EF=BC=88#109=20=E6=94=B6=E5=B0=BE?= =?UTF-8?q?=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 40x24 的尺寸覆盖让五个开关比宿主自带开关胖一圈:宽 +4px(+11%)、 高 +4px(+20%)、滑块 16 → 20px(+25%),用户 2026-10-30 反馈 「感觉我们的要胖一些」。尺寸交还 Switch.module.css:轨道 36x20、 滑块 16px、行程 16px;PAGE_CSS 只保留 160ms 同步过渡与按压缩放, 颜色、圆角、焦点环、禁用态本就在原语里。 - 新增 styles.test.ts 用例:PAGE_CSS 不得给 .cc-switch 加宽高覆盖 - 同步 page-styles 注释、client-and-settings 文档与 CHANGELOG - 重建 lib/client.js --- CHANGELOG.md | 2 +- docs/agent-reference/client-and-settings.md | 2 +- lib/client.js | 24 ++++++++++----------- src/client/page-styles.ts | 24 ++++++++++----------- tests/styles.test.ts | 12 +++++++++++ 5 files changed, 38 insertions(+), 26 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1b8e877..1124118 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,7 +8,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), ### Changed -- **设置页开关改用宿主 `Switch` 组件(#108)。** 五个布尔设置(按套餐过滤模型、零数据保留、网页搜索、侧边栏额度、缓存图片卸载)原先是 `appearance:none` 的 checkbox 加伪元素画出的开关,现在是宿主 primitives 的 `Switch`(`