From 22ebabfaf7163f72b48cd86ae50fc7130d847443 Mon Sep 17 00:00:00 2001 From: Frederic Cabassut Date: Fri, 6 Mar 2026 22:09:14 +0100 Subject: [PATCH] fix: prevent note content overflow on mobile Wrap editor content in a scrollable container with max-h-[60vh] so long notes scroll within the editor instead of pushing it off-screen. Also make the overlay itself scrollable with bottom padding for small viewports. Co-Authored-By: Claude Opus 4.6 --- src/lib/components/NoteEditor.svelte | 50 +++++++++++++++------------- 1 file changed, 26 insertions(+), 24 deletions(-) diff --git a/src/lib/components/NoteEditor.svelte b/src/lib/components/NoteEditor.svelte index 0d8e209..7d37c3e 100644 --- a/src/lib/components/NoteEditor.svelte +++ b/src/lib/components/NoteEditor.svelte @@ -76,14 +76,14 @@
e.stopPropagation()} onkeydown={(e) => { e.stopPropagation(); handleKeydown(e); }} @@ -99,28 +99,30 @@ /> - {#if checklistMode} -
- (content = c)} /> -
- {:else if rawMarkdownMode} - - {:else} - (content = md)} - onEditor={(e) => (tiptapEditor = e)} - onTransaction={() => editorTick++} - placeholder="Add a crumb..." - /> - {/if} +
+ {#if checklistMode} +
+ (content = c)} /> +
+ {:else if rawMarkdownMode} + + {:else} + (content = md)} + onEditor={(e) => (tiptapEditor = e)} + onTransaction={() => editorTick++} + placeholder="Add a crumb..." + /> + {/if} +
{#if !rawMarkdownMode && !checklistMode}