feat(ui): 下载浮层改右下角圆形图标;图库选中只留外框(不显示角标)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 32s

This commit is contained in:
qiqi committed 2026-12-02 17:18:14 +08:00
1 parent 499f16a2df
commit fcbeab6cb1
3 files changed
+20 -6

No files matched your search

+9 -5
View File
@@ -43,21 +43,25 @@
function ResultDownloadOverlay (props) {
const p = props || {}
const stopDown = (e) => { try { e.stopPropagation() } catch (err) { /* ignore */ } }
// 2026-12-02(用户裁定):横条会压住矮图的中心,改成右下角圆形图标按钮 —— 只占一个角,
// 除按钮外整张图仍可单击选中 / 双击预览。只用图标,不加文案(title + aria-label 兜底可发现性)。
return el('div', { className: 'iwb-dl-ov' },
p.children,
el('div', { className: 'iwb-dl-bar' },
el('div', { className: 'iwb-dl-corner' },
p.onCopyRef ? el('button', {
className: 'iwb-dl-btn iwb-dl-btn-ghost',
className: 'iwb-dl-round',
title: p.copyTitle || '插入为参考图节点',
'aria-label': p.copyLabel || '复制',
onPointerDown: stopDown,
onClick: (e) => { e.stopPropagation(); p.onCopyRef() },
}, p.copyIcon || null, el('span', { className: 'iwb-dl-txt' }, p.copyLabel || '复制')) : null,
}, p.copyIcon || '⧉') : null,
el('button', {
className: 'iwb-dl-btn',
className: 'iwb-dl-round iwb-dl-round-primary',
title: p.downloadTitle || '下载原图',
'aria-label': p.label || '下载',
onPointerDown: stopDown,
onClick: (e) => { e.stopPropagation(); if (p.onDownload) p.onDownload() },
}, p.icon || null, el('span', { className: 'iwb-dl-txt' }, p.label || '下载')),
}, p.icon || '↓'),
),
)
}