디렉터리 페이지에서 하위 디렉터리도 가상 리스트로 표시하도록 개선

This commit is contained in:
static
2025-12-30 18:44:46 +09:00
parent 409ae09f4f
commit 1e57941f4c
4 changed files with 60 additions and 43 deletions

View File

@@ -145,7 +145,9 @@
</button>
<TopBarMenu
bind:isOpen={isMenuOpen}
directoryId={page.url.searchParams.get("from") === "category" ? $info?.parentId : undefined}
directoryId={["category", "gallery"].includes(page.url.searchParams.get("from") ?? "")
? $info?.parentId
: undefined}
{fileBlob}
filename={$info?.name}
/>

View File

@@ -22,5 +22,5 @@
<TopBar title="사진 및 동영상" />
<FullscreenDiv>
<Gallery {files} onFileClick={({ id }) => goto(`/file/${id}`)} />
<Gallery {files} onFileClick={({ id }) => goto(`/file/${id}?from=gallery`)} />
</FullscreenDiv>