From 3e98e3d59134ca421a6c2f4f4072fe6e2e699ea7 Mon Sep 17 00:00:00 2001 From: static Date: Fri, 26 Dec 2025 23:29:29 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B0=A4=EB=9F=AC=EB=A6=AC=20=ED=8E=98?= =?UTF-8?q?=EC=9D=B4=EC=A7=80=EC=97=90=EC=84=9C=20=ED=8C=8C=EC=9D=BC?= =?UTF-8?q?=EC=9D=B4=20=ED=91=9C=EC=8B=9C=EB=90=98=EC=A7=80=20=EC=95=8A?= =?UTF-8?q?=EB=8D=98=20=EB=B2=84=EA=B7=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lib/components/organisms/Gallery.svelte | 7 ++++++- src/routes/(main)/BottomBar.svelte | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/lib/components/organisms/Gallery.svelte b/src/lib/components/organisms/Gallery.svelte index 521c287..4ee8a37 100644 --- a/src/lib/components/organisms/Gallery.svelte +++ b/src/lib/components/organisms/Gallery.svelte @@ -95,8 +95,13 @@ const unsubscribes = filesWithDate.map((file) => file.info.subscribe((value) => { const newDate = value?.createdAt ?? value?.lastModifiedAt; - if (file.date?.getTime() === newDate?.getTime()) return; + const newContentType = value?.contentType; + if (file.date?.getTime() === newDate?.getTime() && file.contentType === newContentType) { + return; + } + file.date = newDate; + file.contentType = newContentType; buildRows(); }), ); diff --git a/src/routes/(main)/BottomBar.svelte b/src/routes/(main)/BottomBar.svelte index 60c2b24..e1008df 100644 --- a/src/routes/(main)/BottomBar.svelte +++ b/src/routes/(main)/BottomBar.svelte @@ -22,7 +22,7 @@ {#each pages as { path, label, icon: Icon }}