Merge pull request #229 from e1jo/lightbox-custom

new PhotoSwipe lightbox: pass native options
This commit is contained in:
Alan Grainger
2026-05-30 10:50:54 +08:00
committed by GitHub
4 changed files with 11 additions and 4 deletions
+2 -1
View File
@@ -298,7 +298,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 {