Add file tree to menu

This commit is contained in:
Pixeldrain-Server committed 2026-01-29 23:41:30 +01:00
1 parent 2331d2b969
commit 5ce6b0c417
13 files changed
+199 -285

No files matched your search

+16 -14
View File
@@ -19,21 +19,23 @@ const toggle_edit = () => {
<i class="icon">edit</i>
</button>
</div>
{/if}
{#each $bookmarks_store as bookmark}
<div class="row">
<a class="button" href="/d{fs_encode_path(bookmark.path)}" use:highlight_current_page>
<i class="icon">{bookmark.icon}</i>
<span class:hide={menu_collapsed}>{bookmark.label}</span>
</a>
{#if editing}
<button onclick={() => bookmark_del(bookmark.id)}>
<i class="icon">delete</i>
</button>
{/if}
</div>
{/each}
{#each $bookmarks_store as bookmark}
<div class="row">
<a class="button" href="/d{fs_encode_path(bookmark.path)}" use:highlight_current_page>
<i class="icon">{bookmark.icon}</i>
<span class:hide={menu_collapsed}>{bookmark.label}</span>
</a>
{#if editing}
<button onclick={() => bookmark_del(bookmark.id)}>
<i class="icon">delete</i>
</button>
{/if}
</div>
{/each}
<div class="title"></div>
{/if}
<style>
.title {