mirror of
https://github.com/thegeneralist01/archivr
synced 2026-07-22 11:15:41 +02:00
fix: move artifact fetch to api.js; stop Escape propagation from lightbox
- Export fetchEntryArtifacts(archiveId, entryUid, indices) from api.js using Promise.all + getJson (follows project convention: all /api calls go through api.js, never inline fetch in components) - TweetPreview: import fetchEntryArtifacts, replace inline Promise.all - MediaLightbox keydown handler: stopPropagation + preventDefault for Escape/ArrowLeft/ArrowRight so the parent PreviewModal window listener does not also fire and close the modal behind the lightbox
This commit is contained in:
parent
e7f58bb7ad
commit
29a99d0713
4 changed files with 25 additions and 18 deletions
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue