From 2df5353d0b6f236b0664e23df2947766b01bf7fb Mon Sep 17 00:00:00 2001 From: Frederic Cabassut Date: Fri, 6 Mar 2026 22:05:45 +0100 Subject: [PATCH] style: collapse formatting toolbar into single line with More dropdown on mobile Reorganize toolbar: inline formatting (bold/italic/strike/underline) as primary buttons, move blockquote/code/alignment/HR into a "More" dropdown. Use overflow-x-auto instead of flex-wrap for single-line scrollable toolbar. Co-Authored-By: Claude Opus 4.6 --- src/lib/components/FormattingToolbar.svelte | 172 ++++++++++---------- todo.md | 3 +- 2 files changed, 86 insertions(+), 89 deletions(-) diff --git a/src/lib/components/FormattingToolbar.svelte b/src/lib/components/FormattingToolbar.svelte index d902e79..7652d66 100644 --- a/src/lib/components/FormattingToolbar.svelte +++ b/src/lib/components/FormattingToolbar.svelte @@ -109,7 +109,7 @@
@@ -132,7 +132,43 @@ -
+
+ + + + + + + +
@@ -208,67 +244,6 @@ {/if}
- - - -
- - - - - - - -
- {#if openDropdown === 'align'} -
+ {#if openDropdown === 'more'} +
+ + + + +
{/if}
- -
- - -
diff --git a/todo.md b/todo.md index 8b02781..96844ab 100644 --- a/todo.md +++ b/todo.md @@ -7,6 +7,7 @@ - [x] on mobile the colour selection overflows outside the screen - [x] let's use another icon for toggling the raw md mode, also the active state doesn't make on this icon now, either we change the icon when it's in one state or the other, or the button should be active when the md state is active - [x] same for the list icon, toggling between this mode is nice but the icon becomes inactive which is weird -- [ ] on mobile the toolbar collapose on two lines, can we do something so it stays only on one line and we have a dropdown to open the additional options +- [x] on mobile the toolbar collapose on two lines, can we do something so it stays only on one line and we have a dropdown to open the additional options - [ ] add this todo.md to gitignore and remove from git - [ ] close the menu by default on mobile +- [ ] when note content is really long on mobile (maybe on desktop also I didn't check) it overflows out of view without scrolling