diff --git a/components/files/file-preview-modal.tsx b/components/files/file-preview-modal.tsx index 31df9063..848975f0 100644 --- a/components/files/file-preview-modal.tsx +++ b/components/files/file-preview-modal.tsx @@ -182,7 +182,7 @@ export function FilePreviewModal({ name, onClose, onDownload, getFileContent }: -
+e.stopPropagation()} + > {content})} {!loading && !error && fileType === "markdown" && content !== null && ( -+e.stopPropagation()} + >)} @@ -211,6 +217,7 @@ export function FilePreviewModal({ name, onClose, onDownload, getFileContent }: alt={name} className="max-w-full max-h-full object-contain rounded-lg bg-background" draggable={false} + onClick={(e) => e.stopPropagation()} /> )} @@ -220,6 +227,7 @@ export function FilePreviewModal({ name, onClose, onDownload, getFileContent }: sandbox="" className="w-full max-w-5xl h-full rounded-lg bg-white" title={name} + onClick={(e) => e.stopPropagation()} /> )} @@ -229,6 +237,7 @@ export function FilePreviewModal({ name, onClose, onDownload, getFileContent }: type="application/pdf" className="w-full max-w-5xl h-full rounded-lg bg-white" aria-label={name} + onClick={(e) => e.stopPropagation()} >