Files
cc-web/.planning/file-browser-image-gallery/findings.md

11 lines
903 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 发现
- 初始工作区干净;当前 main 提交 fb2c336。
- codebase-memory-mcp 索引 home-cc-web 状态 ready。
- 图片预览入口为 public/app.js 的 openFileBrowserFile / showFileBrowser。
- 已有鉴权图片接口,沿用当前图片格式白名单与资源释放策略。
- 已找到 openAttachmentPreviewModal 现成弹层,消息附件与 createAssistantImageElement 均调用它;当前没有图库切换或缩放平移。
- 将扩展已有弹层的文件图库模式,保留消息图片原有行为。首尾禁用对应箭头,支持按钮、方向键与移动端触控按钮。
- 已完成图库模式:复用 openAttachmentPreviewModal,文件图鉴权来源按需加载,SVG data URL,Blob 在切换/关闭时释放。
- 已验证首尾禁用、目录仅筛选图片、单图状态、手机 44px 按钮和全视口适配,Escape 捕获避免关闭底层浏览器。