Size motion photo clip to the still and make the toggle sticky #286

This commit is contained in:
Alan Grainger
2026-09-17 21:45:55 +12:00
parent c3dccf4d25
commit 16ba140766
10 changed files with 82 additions and 70 deletions
+1 -2
View File
@@ -239,8 +239,7 @@ export function initLightbox () {
registerBackButton(state.lightbox)
if (state.lightboxConfig.showDownload) registerDownloadButton(state.lightbox)
registerFullscreenButton(state.lightbox)
// Hides itself on slides with no clip, so no config check is needed here -
// the server omits `motionUrl` when `ipp.motionPhotos` is off.
// No config gate: the server omits `motionUrl` when motion photos are off.
registerMotionButton(state.lightbox)
if (state.metadataConfig.descriptionInCaption) registerCaption(state.lightbox)
if (state.metadataConfig.sidebarHasContent) registerSidebar(state.lightbox)