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
+3 -7
View File
@@ -6,13 +6,9 @@ import { findMotionPhotoStill } from '../src/share'
import { gallery } from '../src/gallery/builder'
/*
Motion photo (Live Photo) support. Two rules worth pinning down: the set of
clip ids the video route will serve stays bounded by the share's own assets,
and `motionUrl` reaches the client only for images that have a clip, and only
while `ipp.motionPhotos` is on.
The builder reads config through config/access, so mock that module and set
options per test rather than loading a real config file.
Motion photos: clip ids stay bounded by the share's own assets, and
`motionUrl` is emitted only for images with a clip while `ipp.motionPhotos`
is on. Config is mocked per test rather than loaded from a file.
*/
const cfg: Record<string, unknown> = {}
vi.mock('../src/config/access', () => ({