Use Immich ID as the slide index

This commit is contained in:
Alan Grainger
2026-01-26 16:44:26 +13:00
parent ce62f60f2b
commit 13e4fe231e
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -20,6 +20,7 @@
"lightGallery": {
"controls": true,
"download": true,
"customSlideName": true,
"mobileSettings": {
"controls": false,
"showCloseIcon": true,
+1 -1
View File
@@ -141,7 +141,7 @@ class Render {
video ? `<a data-video='${video}'` : `<a href="${previewUrl}"`,
downloadUrl ? ` data-download-url="${downloadUrl}"` : '',
description ? ` data-sub-html='<p>${description}</p>'` : '',
` data-download="${this.getFilename(asset)}"><img alt="" src="${thumbnailUrl}"/>`,
` data-download="${this.getFilename(asset)}" data-slide-name="${asset.id}"><img alt="" src="${thumbnailUrl}"/>`,
video ? '<div class="play-icon"></div>' : '',
'</a>'
].join('')