Change overall look for dark mode and Timelapse View

This commit is contained in:
2026-02-01 15:08:34 +01:00
parent 3e6d045cbd
commit 1940867519
7 changed files with 54 additions and 145 deletions

View File

@ -27,9 +27,6 @@ export default function ArtworkTimelapseViewer({
}) {
const [open, setOpen] = useState(false);
// IMPORTANT:
// This assumes your existing `/api/image/[...key]` can stream arbitrary S3 keys.
// If your route expects a different format, adjust this in one place.
const src = `/api/image/${encodeURI(timelapse.s3Key)}`;
// Minimal empty captions track (satisfies jsx-a11y/media-has-caption)
@ -46,7 +43,6 @@ export default function ArtworkTimelapseViewer({
<DialogTitle>{title}</DialogTitle>
</DialogHeader>
{/* Only render video when open (prevents unnecessary network / CPU). */}
{open ? (
<div className="space-y-2">
<video
@ -61,7 +57,7 @@ export default function ArtworkTimelapseViewer({
</video>
<div className="text-xs text-muted-foreground">
{timelapse.fileName ? timelapse.fileName : timelapse.s3Key}
{/* {timelapse.fileName ? timelapse.fileName : timelapse.s3Key} */}
</div>
</div>
) : null}