From b63829ae4c984251048eb997b3a9c79cf1f2b223 Mon Sep 17 00:00:00 2001 From: Till JS Date: Fri, 3 Apr 2026 14:04:24 +0200 Subject: [PATCH] =?UTF-8?q?fix(manacore/web):=20redesign=20notes=20workben?= =?UTF-8?q?ch=20=E2=80=94=20compact=20input,=20click-to-edit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace bulky compose area with single-line quick-create (Enter to save). Notes are directly clickable and open as inline editors in-place with title, content, pin/delete actions, and Escape/Fertig to close. Co-Authored-By: Claude Opus 4.6 (1M context) --- .../web/src/lib/modules/notes/ListView.svelte | 378 ++++++++---------- 1 file changed, 174 insertions(+), 204 deletions(-) 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}