diff --git a/.memory/worklog.json b/.memory/worklog.json index 1cd6974..8178b58 100644 --- a/.memory/worklog.json +++ b/.memory/worklog.json @@ -1423,6 +1423,19 @@ "message": "auto-save 2026-05-13 12:07 (~1)", "hash": "9c7044b", "files_changed": 1 + }, + { + "ts": "2026-05-13T12:13:17+08:00", + "type": "commit", + "message": "auto-save 2026-05-13 12:13 (~1)", + "hash": "a14995d", + "files_changed": 1 + }, + { + "ts": "2026-05-13T04:17:38Z", + "type": "session-heartbeat", + "message": "Claude 会话活跃 · 最近命令:claude · 3 项未提交变更 · 最近提交:auto-save 2026-05-13 12:13 (~1)", + "files_changed": 3 } ] } diff --git a/web/components/dashboard.tsx b/web/components/dashboard.tsx index b8e841e..aaf1e8e 100644 --- a/web/components/dashboard.tsx +++ b/web/components/dashboard.tsx @@ -101,7 +101,9 @@ export const Dashboard = forwardRef(function Dashboard({ if (base === "keyframe" && data.expandedFrame !== null) return "keyframe:lightbox" return base })() - const defaultWidth = drawerKey === "keyframe:lightbox" ? 760 : 400 + const isLightboxMode = drawerKey === "keyframe:lightbox" + const defaultWidth = isLightboxMode ? 760 : 400 + const minDrawerWidth = isLightboxMode ? 480 : 280 const [drawerWidths, setDrawerWidths] = useState>({}) useEffect(() => { if (typeof window === "undefined") return @@ -113,7 +115,7 @@ export const Dashboard = forwardRef(function Dashboard({ const drawerWidth = drawerKey ? (drawerWidths[drawerKey] ?? defaultWidth) : defaultWidth const setDrawerWidth = (w: number) => { if (!drawerKey) return - const clamped = Math.max(280, Math.min(1400, w)) + const clamped = Math.max(minDrawerWidth, Math.min(1400, w)) setDrawerWidths((prev) => { const next = { ...prev, [drawerKey]: clamped } try { localStorage.setItem("skg.drawer.widths", JSON.stringify(next)) } catch { /* ignore */ } diff --git a/web/components/lightbox.tsx b/web/components/lightbox.tsx index 82302fc..01b0293 100644 --- a/web/components/lightbox.tsx +++ b/web/components/lightbox.tsx @@ -286,7 +286,10 @@ export function FrameLightbox({ jobId, frames, activeIndex, selected, onClose, o {/* 主体 — 左:大图 + 清洗 / 选用;右:识别 + 元素清单 */}
{/* 左侧大图区 */} -
+
{/* 上方:主图 + 画框 overlay */}
{/* 右侧识别 + 元素清单 */} -
+
{/* 识别 */}