diff --git a/src/partials/Content.svelte b/src/partials/Content.svelte index 2f9fb055..e826df5e 100644 --- a/src/partials/Content.svelte +++ b/src/partials/Content.svelte @@ -5,11 +5,17 @@ const className = "flex flex-col m-auto text-white gap-6" - if (!['lg', '2xl'].includes(size)) { + if (!['inherit', 'lg', '2xl'].includes(size)) { throw new Error(`Invalid size: ${size}`) } +{#if size === 'inherit'} +
+ +
+{/if} + {#if size === 'lg'}
@@ -17,7 +23,7 @@ {/if} {#if size === '2xl'} -
+
{/if} diff --git a/src/partials/Notes.svelte b/src/partials/Notes.svelte index 0207d9f2..b69e2779 100644 --- a/src/partials/Notes.svelte +++ b/src/partials/Notes.svelte @@ -46,19 +46,21 @@ }) -{#if newNotes.length > 0} -
- Load {quantify(newNotes.length, 'new note')} -
-{/if} + + {#if newNotes.length > 0} +
+ Load {quantify(newNotes.length, 'new note')} +
+ {/if} -
- {#each notes as note (note.id)} - - {/each} -
+
+ {#each notes as note (note.id)} + + {/each} +
- + +