mirror of
https://github.com/kmc7468/arkvault.git
synced 2026-02-04 08:06:56 +00:00
갤러리 페이지에서 파일이 표시되지 않던 버그 수정
This commit is contained in:
@@ -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();
|
||||
}),
|
||||
);
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
<AdaptiveDiv class="flex justify-evenly px-4 py-2">
|
||||
{#each pages as { path, label, icon: Icon }}
|
||||
<button
|
||||
onclick={() => goto(path)}
|
||||
onclick={() => goto(path, { replaceState: true })}
|
||||
class={[
|
||||
"w-16 active:rounded-xl active:bg-gray-100",
|
||||
!page.url.pathname.startsWith(path) && "text-gray-600",
|
||||
|
||||
Reference in New Issue
Block a user