PhotoSwipe lightbox options: customization

This commit is contained in:
John B
2026-05-26 22:53:35 +03:00
parent cf4d8f053d
commit 9a6740ab96
4 changed files with 11 additions and 4 deletions
+2 -1
View File
@@ -179,7 +179,8 @@ class Render {
// Show download button only if downloading is allowed AND configured.
showDownload: downloadAllowed && !!getConfigOption('ipp.lightbox.showDownload', true),
showArrows: !!getConfigOption('ipp.lightbox.showArrows', true),
mobileArrows: !!getConfigOption('ipp.lightbox.mobileArrows', false)
mobileArrows: !!getConfigOption('ipp.lightbox.mobileArrows', false),
options: getConfigOption('ipp.lightbox.options', {}) as Record<string, unknown>
},
groupByDate
}
+1
View File
@@ -27,6 +27,7 @@ export interface LightboxConfig {
showArrows: boolean
showDownload: boolean
mobileArrows: boolean
options?: Record<string, unknown>
}
export interface GalleryProps {