feat(ui): 任务文件预览交互调整:去掉预览按钮,md/txt 行首图标改眼睛
- 移除文件行的「预览」按钮,单击整行即可预览 - md/txt 可预览文件的行首图标由文件图标换成眼睛图标 - txt 预览保持原文排版(pre-wrap),md 仍按 markdown 渲染 - 清理不再使用的 .file-act.view 样式
This commit is contained in:
@@ -355,7 +355,7 @@ footer { flex: none; padding: 8px 12px calc(10px + env(safe-area-inset-bottom, 0
|
||||
}
|
||||
.files-panel .file-row:last-child { border-bottom: none; }
|
||||
.files-panel .file-row:active { background: var(--surface); }
|
||||
.files-panel .file-row.clickable { cursor: pointer; } /* md 文件:整行可点预览 */
|
||||
.files-panel .file-row.clickable { cursor: pointer; } /* md/txt 可预览:整行可点 */
|
||||
.files-panel .file-ico {
|
||||
width: 16px; height: 16px; flex-shrink: 0;
|
||||
stroke: #7f8db0; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
|
||||
@@ -373,7 +373,6 @@ footer { flex: none; padding: 8px 12px calc(10px + env(safe-area-inset-bottom, 0
|
||||
border: none; border-radius: 7px; padding: 4px 9px; font-size: 13px; cursor: pointer;
|
||||
}
|
||||
.files-panel .file-act:active { opacity: .75; }
|
||||
.files-panel .file-act.view { background: var(--surface); color: var(--ink); }
|
||||
.files-panel .file-act.del { background: #fdecea; color: #c0392b; }
|
||||
.files-panel .file-act.del:active { opacity: .75; }
|
||||
.files-panel .empty-tip {
|
||||
|
||||
Reference in New Issue
Block a user