fix: 禁用截图原生拖拽重影

This commit is contained in:
ji ruo committed 2026-10-30 13:12:35 +08:00
1 parent 92e58d3de7
commit 74d8b1efa2
1 file changed
+3 -1
+3 -1
View File
@@ -78,7 +78,7 @@ function AuthenticatedImage({
onClick={() => renderedSrc && setZoomed(true)}
aria-label="放大查看报告截图"
>
<img {...props} src={renderedSrc} alt={alt || "报告截图,点击放大"} />
<img {...props} src={renderedSrc} alt={alt || "报告截图,点击放大"} draggable={false} onDragStart={(event) => event.preventDefault()} />
{timestamp}
</button>
<Dialog
@@ -118,6 +118,8 @@ function AuthenticatedImage({
<img
src={renderedSrc}
alt={alt || "报告截图"}
draggable={false}
onDragStart={(event) => event.preventDefault()}
className="max-h-[90dvh] max-w-[90vw] rounded-md object-contain"
/>
{timestamp}