From 851f54a9e18dee145c4294d58fcdd9b78a2b71c1 Mon Sep 17 00:00:00 2001 From: pptx704 Date: Fri, 10 Apr 2026 19:24:24 +0600 Subject: [PATCH] Polish file browser: add up button, normalize design, improve UX Add parent directory button in breadcrumb bar, remove redundant .. row from file list. Normalize styles to use design system tokens (accent glow, iconFloat, fadeUp). Improve empty states, add staggered row entrance animation, file extension badge, and clearer UX copy. --- frontend/src/lib/components/FilesTab.svelte | 32 ++++++++++++--------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/frontend/src/lib/components/FilesTab.svelte b/frontend/src/lib/components/FilesTab.svelte index 7fcb98e..6baaf7e 100644 --- a/frontend/src/lib/components/FilesTab.svelte +++ b/frontend/src/lib/components/FilesTab.svelte @@ -56,6 +56,8 @@ const dirCount = $derived(entries.filter((e) => e.type === 'directory').length); const fileCount = $derived(entries.filter((e) => e.type !== 'directory').length); + const canGoUp = $derived(currentPath !== '/' && currentPath.startsWith('/')); + async function navigateTo(path: string) { currentPath = normalizePath(path); pathInput = currentPath; @@ -343,7 +345,22 @@ -
+
+ + + {#each breadcrumbs() as crumb, i} {#if i > 0} @@ -399,19 +416,6 @@ Nothing here yet
{:else} - - {#if currentPath !== '/'} - - {/if} - {#each sortedEntries as entry, idx (entry.path)}