Use Immich ID as the slide index
This commit is contained in:
@@ -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
@@ -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('')
|
||||||
|
|||||||
Reference in New Issue
Block a user