summaryrefslogtreecommitdiffhomepage
path: root/src/lib/components/CachedThumbnail.svelte
diff options
context:
space:
mode:
authorAdam Malczewski <[email protected]>2026-04-10 01:00:45 +0900
committerAdam Malczewski <[email protected]>2026-04-10 01:00:45 +0900
commit5d610bcad55c5d908a4ae046390124b5f5174762 (patch)
tree68cf7025274e31a092a438479aca9e5176507d53 /src/lib/components/CachedThumbnail.svelte
parent328b962572e4decb5280541c6d01495af440799d (diff)
downloadflashair-speedsync-5d610bcad55c5d908a4ae046390124b5f5174762.tar.gz
flashair-speedsync-5d610bcad55c5d908a4ae046390124b5f5174762.zip
better debug, change button sorting
Diffstat (limited to 'src/lib/components/CachedThumbnail.svelte')
-rw-r--r--src/lib/components/CachedThumbnail.svelte5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/components/CachedThumbnail.svelte b/src/lib/components/CachedThumbnail.svelte
index 3a6d452..dada22a 100644
--- a/src/lib/components/CachedThumbnail.svelte
+++ b/src/lib/components/CachedThumbnail.svelte
@@ -6,9 +6,10 @@
interface Props {
path: string;
alt: string;
+ fileDate?: number;
}
- let { path, alt }: Props = $props();
+ let { path, alt, fileDate }: Props = $props();
let blobUrl = $state<string | undefined>(undefined);
let rawBlobUrl: string | undefined;
@@ -56,7 +57,7 @@
try {
const { blob, meta } = await flashair.fetchThumbnail(filePath);
// Store in cache (fire-and-forget)
- void imageCache.put('thumbnail', filePath, blob, meta);
+ void imageCache.put('thumbnail', filePath, blob, meta, fileDate);
const url = URL.createObjectURL(blob);
rawBlobUrl = url;
blobUrl = url;