From b24412b9dcd20523768dbc9474a279ca42703ae9 Mon Sep 17 00:00:00 2001 From: dev Date: Sun, 6 Sep 2026 12:05:32 +0300 Subject: [PATCH] open attachment images in the same-page lightbox like photos --- public/journal.html | 2 +- public/share.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/journal.html b/public/journal.html index a09f13b..98fed87 100644 --- a/public/journal.html +++ b/public/journal.html @@ -115,7 +115,7 @@ function filesHTML(files) { if (!files || !files.length) return ''; return `
${files.map(f => isImageFile(f.name) - ? `${esc(f.name)}` + ? `${esc(f.name)}` : `${esc(f.name)}` ).join('')}
`; } diff --git a/public/share.html b/public/share.html index 1bc90bd..b1f9fe6 100644 --- a/public/share.html +++ b/public/share.html @@ -60,7 +60,7 @@ function isImageFile(name){return /\.(jpe?g|png|gif|webp|bmp|avif|svg|ico)$/i.te function filesHTML(files){ if(!files||!files.length)return ''; return `
${files.map(f=>isImageFile(f.name) - ?`${esc(f.name)}` + ?`${esc(f.name)}` :`${esc(f.name)}` ).join('')}
`; }