From 79b3f7961bd3147d806599b5c8bce5a96a135fe7 Mon Sep 17 00:00:00 2001 From: kang Date: Thu, 14 May 2026 03:09:40 +0800 Subject: [PATCH] auto-save 2026-05-14 03:09 (~3) --- .memory/worklog.json | 13 +++++++++++++ docs/source-analysis.html | 12 ++++++++++++ web/components/nodes/hover-preview.tsx | 21 ++++++++++++++++----- 3 files changed, 41 insertions(+), 5 deletions(-) diff --git a/.memory/worklog.json b/.memory/worklog.json index 1e71c23..b036fee 100644 --- a/.memory/worklog.json +++ b/.memory/worklog.json @@ -2998,6 +2998,19 @@ "type": "session-heartbeat", "message": "Claude 会话活跃 · 最近命令:claude · 3 项未提交变更 · 最近提交:auto-save 2026-05-14 02:58 (~6)", "files_changed": 3 + }, + { + "ts": "2026-05-14T03:04:09+08:00", + "type": "commit", + "message": "auto-save 2026-05-14 03:03 (~3)", + "hash": "3df3ce4", + "files_changed": 3 + }, + { + "ts": "2026-05-13T19:08:49Z", + "type": "session-heartbeat", + "message": "Codex 会话活跃 · 最近命令:codex · 3 项未提交变更 · 最近提交:auto-save 2026-05-14 03:03 (~3)", + "files_changed": 3 } ] } diff --git a/docs/source-analysis.html b/docs/source-analysis.html index c1c980b..3966668 100644 --- a/docs/source-analysis.html +++ b/docs/source-analysis.html @@ -816,6 +816,18 @@ api/main.py

变更记录

这个记录不是 git log 的替代品。它记录“产品理解发生了什么变化、影响了哪些源码、你以后描述需求时该怎么说”。后续每次改功能都要补一条。

+
+
+

2026-05-14 · Hover 大预览尺寸信息增强

+ Canvas + HoverPreview +
+
+

问题:原始尺寸和 Fit 比例之前是左上角小号单行文字,用户在快速扫缩略图时不够醒目,无法马上感知素材分辨率差异。

+

改动:HoverPreview 左上角改为两层信息徽章:标题固定为“原始尺寸”,主数字用大号等宽字体显示 宽 × 高,旁边保留 Fit 百分比或 1:1 原寸 状态。

+

影响:web/components/nodes/hover-preview.tsxdocs/source-analysis.html。定位和 Fit / 1:1 行为不变,只提升尺寸信息可读性。

+
+

2026-05-14 · 删除确认改为页面内分层交互

diff --git a/web/components/nodes/hover-preview.tsx b/web/components/nodes/hover-preview.tsx index 7ca0976..e3f9665 100644 --- a/web/components/nodes/hover-preview.tsx +++ b/web/components/nodes/hover-preview.tsx @@ -86,9 +86,10 @@ export function HoverPreview({ return Math.min(1, maxWidth / naturalSize.width, maxHeight / naturalSize.height) }, [naturalSize, viewport.height, viewport.width]) - const metadataText = naturalSize - ? `原始 ${naturalSize.width}×${naturalSize.height} · ${actualSize ? "1:1" : `Fit ${Math.round((fitScale ?? 1) * 100)}%`}` - : actualSize ? "1:1" : "Fit" + const dimensionText = naturalSize ? `${naturalSize.width} × ${naturalSize.height}` : "读取中" + const scaleText = naturalSize + ? actualSize ? "1:1 原寸" : `Fit ${Math.round((fitScale ?? 1) * 100)}%` + : actualSize ? "1:1 原寸" : "Fit" const visibilityCls = shown ? pinned ? "opacity-100 pointer-events-auto" : "opacity-100 pointer-events-none" @@ -124,8 +125,18 @@ export function HoverPreview({
{shown && ( -
- {metadataText} +
+
+ 原始尺寸 +
+
+ + {dimensionText} + + + {scaleText} + +
)} {videoSrc ? (