diff --git a/bun.lock b/bun.lock index def43e6..42b4bed 100644 --- a/bun.lock +++ b/bun.lock @@ -6,8 +6,8 @@ "dependencies": { "bun-plugin-svelte": "^0.0.6", "bun-plugin-tailwind": "^0.0.15", - "svelte": "^5.25.6", - "tailwindcss": "^4.1.2", + "svelte": "^5.25.7", + "tailwindcss": "^4.1.3", }, "devDependencies": { "@types/bun": "latest", diff --git a/src/components/main.svelte b/src/components/main.svelte index bc64388..bade871 100644 --- a/src/components/main.svelte +++ b/src/components/main.svelte @@ -4,6 +4,6 @@ const { children }: { children?: Snippet } = $props(); -
+
{@render children?.()}
diff --git a/src/components/progress-table.svelte b/src/components/progress-table.svelte index 4c46317..0ac9330 100644 --- a/src/components/progress-table.svelte +++ b/src/components/progress-table.svelte @@ -1,9 +1,15 @@ -
+
{ + const scrollTop = container.scrollTop; + const scrollHeight = container.scrollHeight; + const clientHeight = container.clientHeight; + + scrolled = scrollTop > 32; + }} +> {#await entriesPromise}

Loading entries...

{:then entries} @@ -36,6 +52,9 @@

No entries.

{:else} {@render table(entries)} +
{/if} {:catch error}

@@ -49,21 +68,30 @@ class="@container grid w-full grid-cols-[auto,1fr,auto,auto,auto] gap-1 font-light @lg:gap-3" >

id
name
+ + {#if scrolled} +
+ {/if}
{#each entries as entry (entry.id)}
{entry.id}
{entry.name} {@render done(entry.finished)} diff --git a/src/index.html b/src/index.html index fd62144..640ea0b 100644 --- a/src/index.html +++ b/src/index.html @@ -1,7 +1,7 @@ - Progress tracker - skaarup.dev + Progress tracker