From aa7909076c1a29caf3ca979e2c7c5e09c30d76e4 Mon Sep 17 00:00:00 2001 From: Till JS Date: Thu, 23 Apr 2026 23:03:19 +0200 Subject: [PATCH] =?UTF-8?q?feat(website):=20full-bleed=20editor=20+=20unif?= =?UTF-8?q?ied=20sidebar=20with=20Seiten/Einf=C3=BCgen/Block=20tabs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Two usability fixes for the website editor — the preview was cramped between two sidebars inside the default max-w-7xl layout shell. Layout: - (app) layout: detect the editor route and skip the max-w-7xl clamp + horizontal padding, so the editor gets the full viewport width Editor shell: - Replace the two fixed sidebars (16rem left + 20rem right = 36rem) with one 18rem tabbed sidebar on the right — nets ~18rem (~288px) of extra canvas room on a 1440px display - Tabs: Seiten (site meta + PageList), Einfügen (InsertPalette), Block (BlockInspector with the move/delete controls) - Selecting a block auto-switches to the Block tab (via untrack-guarded $effect so changing the tab manually doesn't fight the selection) - Switching pages resets selection + returns to the Seiten tab - Empty-page hint points to the Einfügen tab Co-Authored-By: Claude Opus 4.7 (1M context) --- .../modules/website/views/EditorView.svelte | 199 +++++++++++++----- .../apps/web/src/routes/(app)/+layout.svelte | 12 +- 2 files changed, 156 insertions(+), 55 deletions(-) diff --git a/apps/mana/apps/web/src/lib/modules/website/views/EditorView.svelte b/apps/mana/apps/web/src/lib/modules/website/views/EditorView.svelte index b16282155..415c7cb50 100644 --- a/apps/mana/apps/web/src/lib/modules/website/views/EditorView.svelte +++ b/apps/mana/apps/web/src/lib/modules/website/views/EditorView.svelte @@ -1,4 +1,5 @@