This commit is contained in:
Andrea
2026-03-20 17:01:20 +01:00
parent 0a501a97c4
commit d5a2e490f0

View File

@@ -10,13 +10,14 @@
</script>
<svelte:window
onclick={() => {
}}
onkeydown={(e) => {
if (e.key === "n" && e.metaKey) {
expanded = true;
return;
}
if( e.key === "Escape") {
expanded = false;
return;
}
}}
/>
@@ -24,5 +25,7 @@
{#if !expanded}
<div>Scrivi una nota...</div>
{:else}
<NoteEditor note={undefined} onSubmit={onCreate} />
<div class="note-editor-container">
<NoteEditor note={undefined} onSubmit={onCreate} />
</div>
{/if}