feat(ui): 任务文件预览调整——图片走 fs-viewer,pdf 不预
- md/txt/html + png/jpg/gif/webp/svg 全部进 fs-viewer 预览 html 用 sandbox iframe,md/txt 走 bubble,图片 fetch+blob URL 用 <img> 居中 - pdf 退回普通文件图标(行不可点),仅下载/删除 - closeFullscreen 派发 fs:close 事件,图片 blob URL 随关闭释放 - 移除 openInTab 及其所有调用
This commit is contained in:
@@ -558,6 +558,8 @@ footer { flex: none; padding: 8px 12px calc(10px + env(safe-area-inset-bottom, 0
|
||||
|
||||
/* HTML 预览:沙箱 iframe 铺满全屏查看器 */
|
||||
.fs-html-frame { width: 100%; height: 100%; min-height: 70vh; border: 0; background: #fff; border-radius: 12px; }
|
||||
/* 图片预览:fs-viewer 居中缩放显示原图,大图可滚动 */
|
||||
.fs-img-frame { display: block; max-width: 100%; max-height: 80vh; margin: 0 auto; border-radius: 8px; object-fit: contain; background: #fff; }
|
||||
|
||||
/* ================= 设置区(覆盖层页面;卡片/表单样式搬自 style.css 适配 v2 变量) ================= */
|
||||
#settings-page {
|
||||
|
||||
Reference in New Issue
Block a user