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": { "lightGallery": {
"controls": true, "controls": true,
"download": true, "download": true,
"customSlideName": true,
"mobileSettings": { "mobileSettings": {
"controls": false, "controls": false,
"showCloseIcon": true, "showCloseIcon": true,
+1 -1
View File
@@ -141,7 +141,7 @@ class Render {
video ? `<a data-video='${video}'` : `<a href="${previewUrl}"`, video ? `<a data-video='${video}'` : `<a href="${previewUrl}"`,
downloadUrl ? ` data-download-url="${downloadUrl}"` : '', downloadUrl ? ` data-download-url="${downloadUrl}"` : '',
description ? ` data-sub-html='<p>${description}</p>'` : '', 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>' : '', video ? '<div class="play-icon"></div>' : '',
'</a>' '</a>'
].join('') ].join('')