交互:恢复 up-card 右上角 ×——点掉卡片即发送时不再拼该文件告知行(任务目录文件不动)

- ×在上传完成/失败后显示(上传中隐藏);点掉从 DOM 移除,send() 按现存 data-done 卡片实时收集,天然排除
- 恢复 .up-x 样式;.up-info 加右内边距避免文件名省略号被 × 压住
This commit is contained in:
2026-09-10 09:00:44 +08:00
parent 7e17bb7ef4
commit d3e64c8a2f
2 changed files with 29 additions and 10 deletions
+11 -2
View File
@@ -299,14 +299,23 @@ footer { flex: none; padding: 8px 12px calc(10px + env(safe-area-inset-bottom, 0
position: relative; flex: 0 0 auto;
display: flex; align-items: center; gap: 8px;
width: 158px; max-width: 56vw;
background: var(--surface); border: 1px solid #e3e6ee; border-radius: 10px;
background: var(--surface); border: 1px solid #e3e6ee; border-radius: 16px;
padding: 10px 11px; overflow: hidden;
}
.up-ico { color: var(--gray); display: flex; flex: none; }
.up-ico .ic { width: 18px; height: 18px; }
.up-info { flex: 1; min-width: 0; }
.up-info { flex: 1; min-width: 0; padding-right: 14px; } /* 给右上 × 让位,避免压住文件名省略号 */
.up-name { font-size: 12px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-meta { font-size: 10.5px; color: var(--gray); margin-top: 3px; }
/* 卡片右上 ×:上传完成/失败后可见,点掉=发送时不再告知该文件(不删任务目录里的文件) */
.up-x {
position: absolute; right: 5px; top: 5px; z-index: 2;
width: 16px; height: 16px; border-radius: 50%; border: none; cursor: pointer; padding: 0;
background: rgba(0, 0, 0, .06); color: var(--gray);
display: flex; align-items: center; justify-content: center;
}
.up-x:hover { background: rgba(0, 0, 0, .12); color: var(--ink); }
.up-x .ic { width: 10px; height: 10px; stroke-width: 2.4; }
.up-mask {
position: absolute; inset: 0; z-index: 1;
background: rgba(255, 255, 255, .78);