diff --git a/apps/manacore/apps/web/src/lib/modules/notes/ListView.svelte b/apps/manacore/apps/web/src/lib/modules/notes/ListView.svelte index 4a2922cdb..0e90ed9b8 100644 --- a/apps/manacore/apps/web/src/lib/modules/notes/ListView.svelte +++ b/apps/manacore/apps/web/src/lib/modules/notes/ListView.svelte @@ -1,6 +1,6 @@ -
- -
+
+ +
+ + (composeFocused = true)} - onkeydown={handleComposeKeydown} + placeholder="Neue Notiz... (Enter)" + bind:value={newTitle} + onkeydown={handleQuickCreate} /> - {#if composeFocused || composeTitle || composeContent} - - - {/if}
- - {#if notes.length > 3} - + + {#if notes.length > 5} + {/if} -
+
{#each filtered as note (note.id)} {#if editingId === note.id} -
{ - if (e.key === 'Escape') cancelEdit(); - }} - > - - -
- - + +
+ + +
{:else} + {/if} {/each}
- {#if notes.length === 0 && !composeFocused} -
Tippe oben, um deine erste Notiz zu schreiben.
+ {#if notes.length === 0} +
Tippe oben, um eine Notiz zu erstellen.
{/if}