diff --git a/src/components/PostComponent.astro b/src/components/PostComponent.astro index 3e5fdca..46f1dd0 100644 --- a/src/components/PostComponent.astro +++ b/src/components/PostComponent.astro @@ -28,7 +28,7 @@ const { post } = Astro.props as Props; year: "numeric" }).format(post.data.created)}

{post.data.description}

-
+
{post.data.tags.map((tag) => ( ))} diff --git a/src/components/dashboard/SchematicList.svelte b/src/components/dashboard/SchematicList.svelte index 0441153..a7fb60a 100644 --- a/src/components/dashboard/SchematicList.svelte +++ b/src/components/dashboard/SchematicList.svelte @@ -19,9 +19,15 @@
@@ -59,7 +85,10 @@ - dispatch("to", {id: bread.id})} class="hover:underline hover:cursor-pointer text-2xl">{bread.name} + { + page = 0; + dispatch("to", {id: bread.id}); + }} class="hover:underline hover:cursor-pointer text-2xl">{bread.name} {/each} @@ -93,8 +122,10 @@ {#if schematics.breadcrumbs.length !== 0} { if (schematics.breadcrumbs.length === 1) { + page = 0; dispatch("reset") } else { + page = 0; dispatch("to", {id: schematics.breadcrumbs[schematics.breadcrumbs.length - 2].id}) } }}> @@ -109,12 +140,36 @@ {/if} - {#each schematics.schematics as schem} + {#each pagedSchematics as schem} {/each} +
+
    +
  • + +
  • + {#each pages as p} +
  • + +
  • + {/each} +
  • + +
  • +
+
+ {#if infoModalId !== null} diff --git a/src/components/dashboard/SchematicListTile.svelte b/src/components/dashboard/SchematicListTile.svelte index 8c7c7e0..732f332 100644 --- a/src/components/dashboard/SchematicListTile.svelte +++ b/src/components/dashboard/SchematicListTile.svelte @@ -52,20 +52,25 @@ month: "2-digit", year: "numeric" }).format(dayjs(schem.lastUpdate).utc(false).toDate())} - - {#if schem.replaceColor} - - {:else} - - {/if} - - - {#if schem.allowReplay} - - {:else} - - {/if} - + {#if schem.type != null} + + {#if schem.replaceColor} + + {:else} + + {/if} + + + {#if schem.allowReplay} + + {:else} + + {/if} + + {:else} + + + {/if}