From a6a330ca59825b40cb898193dc26c2cace31486e Mon Sep 17 00:00:00 2001 From: Frederic Cabassut Date: Mon, 9 Mar 2026 23:30:21 +0100 Subject: [PATCH] refactor: make toolbar wrap instead of scroll, fix overflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use flex-wrap instead of overflow-x-auto for the formatting toolbar — scrolling clips absolutely-positioned dropdown popovers (CSS forces both axes to auto). All buttons are now always visible, wrapping to a second line on narrow screens. Remove the More dropdown entirely since all items are top-level. Add overflow-hidden to the editor card to prevent horizontal overflow. Co-Authored-By: Claude Opus 4.6 --- src/lib/components/FormattingToolbar.svelte | 82 +++------------------ src/lib/components/NoteEditor.svelte | 2 +- 2 files changed, 11 insertions(+), 73 deletions(-) diff --git a/src/lib/components/FormattingToolbar.svelte b/src/lib/components/FormattingToolbar.svelte index 3bbaa21..c307093 100644 --- a/src/lib/components/FormattingToolbar.svelte +++ b/src/lib/components/FormattingToolbar.svelte @@ -23,7 +23,6 @@ AlignJustify, Minus, ChevronDown, - Ellipsis, Table2, BetweenHorizontalEnd, BetweenVerticalEnd, @@ -114,14 +113,14 @@
- + - +
- + - - -
- - {#if openDropdown === 'more'} -
- - -
- - - - -
- {/if} -
diff --git a/src/lib/components/NoteEditor.svelte b/src/lib/components/NoteEditor.svelte index 1d31686..d5ffa5e 100644 --- a/src/lib/components/NoteEditor.svelte +++ b/src/lib/components/NoteEditor.svelte @@ -201,7 +201,7 @@ >
e.stopPropagation()} onkeydown={(e) => { e.stopPropagation(); handleKeydown(e); }}