From 7d1f8d8c1022441a778c5c8eeaccc4ee4ce6d604 Mon Sep 17 00:00:00 2001 From: limina1 Date: Sun, 26 Oct 2025 19:12:59 -0400 Subject: [PATCH] Improve compose page layout and readability MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Increase page container width from 1024px to 1536px for modern displays - Adjust editor/preview split from 50/50 to 60/40 (editor larger) - Add max-width constraints to content areas (900px editor, 896px preview) - Center content within panels for optimal reading line length - Remove duplicate "Document tags:" display in preview The editor now has more breathing room while maintaining readable line lengths. Content stays centered and constrained even with long paragraphs, improving overall UX for writing and reviewing. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- src/lib/components/ZettelEditor.svelte | 39 ++++++-------------------- src/routes/new/compose/+page.svelte | 4 +-- 2 files changed, 10 insertions(+), 33 deletions(-) diff --git a/src/lib/components/ZettelEditor.svelte b/src/lib/components/ZettelEditor.svelte index 00b6add..450fbab 100644 --- a/src/lib/components/ZettelEditor.svelte +++ b/src/lib/components/ZettelEditor.svelte @@ -706,6 +706,8 @@ ".cm-content": { padding: "16px", minHeight: "100%", + maxWidth: "900px", + margin: "0 auto", }, ".cm-editor": { borderRadius: "0.5rem", @@ -881,7 +883,7 @@ (showTutorial && showStructurePreview) ? 'lg:w-1/3' : showPreview || showTutorial || showStructurePreview - ? 'lg:w-1/2' + ? 'lg:w-3/5' : 'w-full'} flex flex-col" >
+
{#if !content.trim()}
- - {#if publicationResult.metadata.attributes.tags} - {@const tagsList = - publicationResult.metadata.attributes.tags - .split(",") - .map((t: string) => t.trim())} - {#if tagsList.length > 0} -
-
- Document tags: - {#each tagsList as tag} -
- # - {tag} -
- {/each} -
-
- {/if} - {/if}
{/if} @@ -1158,6 +1134,7 @@ {/if}
{/if} +
@@ -1168,7 +1145,7 @@
Compose Note - Alexandria - -
+ +
Compose Notes