feat(ui): 任务文件预览扩展 + 用户消息复制按钮

- md/txt/html 走 fs-viewer 预览(html 用 sandbox iframe),pdf/图片新标签页
- 长文件名支持横向滑动查看全文(overflow-x:auto,隐藏滚动条)
- 用户消息(bubble-user)也加复制按钮,复用 actionsHtml + 已有 onCopyClick 代理
  复制内容取 parseUploadNotice 后的纯文本,不带附件行
This commit is contained in:
2026-09-03 18:38:09 +08:00
parent 6bd703981b
commit 0951232396
2 changed files with 60 additions and 23 deletions
+7 -1
View File
@@ -360,10 +360,13 @@ footer { flex: none; padding: 8px 12px calc(10px + env(safe-area-inset-bottom, 0
width: 16px; height: 16px; flex-shrink: 0;
stroke: #7f8db0; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
/* 长文件名:横向滚动查看全文(隐藏滚动条,靠 touch/Shift+滚轮/方向键滑动) */
.files-panel .file-name {
flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap;
font-weight: 500;
scrollbar-width: none; -ms-overflow-style: none;
}
.files-panel .file-name::-webkit-scrollbar { display: none; }
.files-panel .file-size {
flex: none; background: var(--surface); color: var(--gray);
font-size: 11px; padding: 2px 8px; border-radius: 9px;
@@ -553,6 +556,9 @@ footer { flex: none; padding: 8px 12px calc(10px + env(safe-area-inset-bottom, 0
#fs-body .tool-card { max-width: 100%; }
#fs-body .tool-card pre { max-height: 65vh; }
/* HTML 预览:沙箱 iframe 铺满全屏查看器 */
.fs-html-frame { width: 100%; height: 100%; min-height: 70vh; border: 0; background: #fff; border-radius: 12px; }
/* ================= 设置区(覆盖层页面;卡片/表单样式搬自 style.css 适配 v2 变量) ================= */
#settings-page {
position: absolute; inset: 0; z-index: 60;