diff --git a/.memory/worklog.json b/.memory/worklog.json index a76521e..f122562 100644 --- a/.memory/worklog.json +++ b/.memory/worklog.json @@ -1,12 +1,5 @@ { "entries": [ - { - "files_changed": 1, - "hash": "9493549", - "message": "auto-save 2026-05-10 07:10 (~1)", - "ts": "2026-05-10T07:10:24+08:00", - "type": "commit" - }, { "files_changed": 1, "message": "Codex 会话活跃 · 最近命令:codex · 分支 master · 1 项未提交变更 · 最近提交:auto-save 2026-05-10 07:10 (~1)", @@ -3258,6 +3251,13 @@ "type": "session-heartbeat", "message": "Codex 会话活跃 · 最近命令:codex · 分支 master · 1 项未提交变更 · 最近提交:auto-save 2026-05-11 15:13 (~1)", "files_changed": 1 + }, + { + "ts": "2026-05-11T15:19:09+08:00", + "type": "commit", + "message": "auto-save 2026-05-11 15:18 (~4)", + "hash": "0a3403a", + "files_changed": 4 } ] } diff --git a/RULES.md b/RULES.md index f51f3df..29cd222 100644 --- a/RULES.md +++ b/RULES.md @@ -20,7 +20,7 @@ - 爱马仕前端「仪表盘」活动热力图已重做为带摘要、月份标尺、紧凑格子和细分色阶的活动卡片 - 爱马仕前端「设置 → 连接」可自助维护 API 地址 / API Key 并测试连接;「对话 → 存周报」和「设置 → 周报记录」会在本地保存任务描述、上下文片段和最终周报 - 爱马仕前端「设置 → 模型与 MCP」可读取 / 写入 LXC 内 `/opt/hermes-agent/config.yaml`,保存后重启 Docker `hermes-agent` -- 当前前端静态壳缓存版本:`hermes-ui-v20` +- 当前前端静态壳缓存版本:`hermes-ui-v23` - 文档 / 解析:https://styles.kang-kang.com - 管理后台:待定 - 代码仓:https://git.kang-kang.com/kangwan/hermes-glass-ui-personal diff --git a/src/index.html b/src/index.html index 90de5b9..19c7e29 100644 --- a/src/index.html +++ b/src/index.html @@ -11,7 +11,7 @@ 爱马仕 · AI - + @@ -1376,6 +1376,6 @@ git push # Gitea kangwan/hermes-glass-ui-personal - + diff --git a/src/styles.css b/src/styles.css index 7477fc2..70f7be5 100644 --- a/src/styles.css +++ b/src/styles.css @@ -2444,6 +2444,7 @@ a { color: var(--orange-3); text-decoration: none; } background: var(--card-bg); border: 1px solid var(--line); border-radius: 14px; + flex: 0 0 auto; display: flex; flex-direction: column; min-width: 0; @@ -2849,6 +2850,7 @@ a { color: var(--orange-3); text-decoration: none; } .settings-save-bar { display: flex; + flex: 0 0 auto; justify-content: flex-end; padding: 10px 0 0; } @@ -3918,16 +3920,34 @@ a { color: var(--orange-3); text-decoration: none; } max-height: min(180px, 32vh); } -/* 设置页需要整页滚动,不能让每张设置卡片各自裁切内容。 */ -#tab-settings .settings-group, -#tab-settings .settings-group-body, -#tab-settings .about-item { +/* 设置页采用稳定的表单文档流,避免全局卡片滚动规则压扁卡片内容。 */ +#tab-settings .settings-scroll { + display: block; + overflow-y: auto; +} +#tab-settings .settings-group { + display: block; + width: 100%; + height: auto; max-height: none; + overflow: visible; + scrollbar-gutter: auto; + margin: 0 0 16px; +} +#tab-settings .settings-group-body { + height: auto; + max-height: none; + overflow: visible; scrollbar-gutter: auto; } -#tab-settings .settings-group { overflow: hidden; } -#tab-settings .settings-group-body, -#tab-settings .about-item { overflow: visible; } +#tab-settings .about-item { + max-height: none; + overflow: visible; + scrollbar-gutter: auto; +} +#tab-settings .settings-save-bar { + margin-top: 4px; +} @media (max-width: 640px) { .settings-scroll { diff --git a/src/sw.js b/src/sw.js index 4fcf9f0..f0b09cf 100644 --- a/src/sw.js +++ b/src/sw.js @@ -1,11 +1,11 @@ // 爱马仕 Hermes · 轻量 Service Worker // 静态壳走 network-first(拿不到再回退缓存),API 直通 -const CACHE = "hermes-ui-v20"; +const CACHE = "hermes-ui-v23"; const ASSETS = [ "./", "./index.html", - "./styles.css", - "./app.js", + "./styles.css?v=20260511-settings-v23", + "./app.js?v=20260511-settings-v23", "./manifest.webmanifest", "./icon.svg", ];