From 0a3403a062e8794d0e65174f49a8e018337179b1 Mon Sep 17 00:00:00 2001 From: kang Date: Mon, 11 May 2026 15:19:09 +0800 Subject: [PATCH] auto-save 2026-05-11 15:18 (~4) --- .memory/worklog.json | 25 +++++++++++++------------ RULES.md | 2 +- src/styles.css | 25 +++++++++---------------- src/sw.js | 2 +- 4 files changed, 24 insertions(+), 30 deletions(-) diff --git a/.memory/worklog.json b/.memory/worklog.json index be63405..a76521e 100644 --- a/.memory/worklog.json +++ b/.memory/worklog.json @@ -1,17 +1,5 @@ { "entries": [ - { - "files_changed": 1, - "message": "Codex 会话活跃 · 最近命令:codex · 分支 master · 1 项未提交变更 · 最近提交:auto-save 2026-05-10 07:04 (~1)", - "ts": "2026-05-09T23:05:54Z", - "type": "session-heartbeat" - }, - { - "files_changed": 1, - "message": "Codex 会话活跃 · 最近命令:codex · 分支 master · 1 项未提交变更 · 最近提交:auto-save 2026-05-10 07:04 (~1)", - "ts": "2026-05-09T23:08:29Z", - "type": "session-heartbeat" - }, { "files_changed": 1, "hash": "9493549", @@ -3257,6 +3245,19 @@ "message": "auto-save 2026-05-11 15:07 (~4)", "hash": "ca713d8", "files_changed": 4 + }, + { + "ts": "2026-05-11T15:13:20+08:00", + "type": "commit", + "message": "auto-save 2026-05-11 15:13 (~1)", + "hash": "71f5297", + "files_changed": 1 + }, + { + "ts": "2026-05-11T07:16:27Z", + "type": "session-heartbeat", + "message": "Codex 会话活跃 · 最近命令:codex · 分支 master · 1 项未提交变更 · 最近提交:auto-save 2026-05-11 15:13 (~1)", + "files_changed": 1 } ] } diff --git a/RULES.md b/RULES.md index e48f84b..f51f3df 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-v19` +- 当前前端静态壳缓存版本:`hermes-ui-v20` - 文档 / 解析:https://styles.kang-kang.com - 管理后台:待定 - 代码仓:https://git.kang-kang.com/kangwan/hermes-glass-ui-personal diff --git a/src/styles.css b/src/styles.css index cca423a..7477fc2 100644 --- a/src/styles.css +++ b/src/styles.css @@ -2433,16 +2433,12 @@ a { color: var(--orange-3); text-decoration: none; } flex: 1 1 auto; min-height: 0; overflow-y: auto; - padding: 4px 10px 18px 0; - display: grid; - grid-template-columns: minmax(0, 1fr); - gap: 18px; - align-content: start; + padding: 4px 10px 20px 0; + display: flex; + flex-direction: column; + gap: 16px; } -@media (min-width: 1180px) { - .settings-scroll { grid-template-columns: repeat(2, minmax(0, 1fr)); } -} -.settings-group.wide { grid-column: 1 / -1; } +.settings-group.wide { grid-column: auto; } .settings-group { background: var(--card-bg); @@ -2452,7 +2448,7 @@ a { color: var(--orange-3); text-decoration: none; } flex-direction: column; min-width: 0; min-height: 0; - overflow: visible; + overflow: hidden; } .settings-group.wide { min-height: 0; } .settings-group-head { @@ -2855,11 +2851,6 @@ a { color: var(--orange-3); text-decoration: none; } display: flex; justify-content: flex-end; padding: 10px 0 0; - grid-column: 1 / -1; - position: sticky; - bottom: 0; - z-index: 4; - background: linear-gradient(to top, var(--bg-0) 68%, rgba(0,0,0,0)); } .settings-save-bar .glass-btn-sm { padding: 12px 24px; @@ -3932,9 +3923,11 @@ a { color: var(--orange-3); text-decoration: none; } #tab-settings .settings-group-body, #tab-settings .about-item { 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; } @media (max-width: 640px) { .settings-scroll { diff --git a/src/sw.js b/src/sw.js index 3e17c52..4fcf9f0 100644 --- a/src/sw.js +++ b/src/sw.js @@ -1,6 +1,6 @@ // 爱马仕 Hermes · 轻量 Service Worker // 静态壳走 network-first(拿不到再回退缓存),API 直通 -const CACHE = "hermes-ui-v19"; +const CACHE = "hermes-ui-v20"; const ASSETS = [ "./", "./index.html",