small fix

This commit is contained in:
Ryan
2025-03-10 11:31:48 -04:00
committed by GitHub
parent bb81a79015
commit 49f1b50f80

View File

@@ -185,7 +185,7 @@ export function renderFileTable(folder) {
// Build the preview button HTML string using the file's properties directly.
const previewButton = isImage
? `<button class="btn btn-sm btn-info ml-2" onclick="previewImage('${folderPath + encodeURIComponent(file.name)}', '${safeFileName}')">
? `<button class="btn btn-sm btn-info ml-2" onclick="event.stopPropagation(); previewImage('${folderPath + encodeURIComponent(file.name)}', '${safeFileName}')">
<i class="material-icons">image</i>
</button>`
: "";