mirror of
https://github.com/thegeneralist01/archivr
synced 2026-07-22 03:05:32 +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
|
|
@ -4,7 +4,7 @@
|
|||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Archivr</title>
|
||||
<script type="module" crossorigin src="/assets/index-J6UnJptz.js"></script>
|
||||
<script type="module" crossorigin src="/assets/index-CH_nemMw.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-CLkuyO9A.css">
|
||||
</head>
|
||||
<body>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue