From e0e31d3a70ba245bcd1c637de2887bf805461632 Mon Sep 17 00:00:00 2001 From: Steffen Becker Date: Wed, 12 Aug 2026 18:49:59 +0200 Subject: [PATCH] feat: page previews in the Columns menu MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Word shows the layout rather than naming it. The page is 20 units of text width with a 2-unit gutter, so the columns narrow as their count rises; surface and border come from the palette, so it follows the theme. Only equal widths exist here — Word's Left and Right would need a per-column width on the node. --- .../components/ribbon/tabs/LayoutTab.svelte | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/lib/components/ribbon/tabs/LayoutTab.svelte b/src/lib/components/ribbon/tabs/LayoutTab.svelte index 7befecf..175d14f 100644 --- a/src/lib/components/ribbon/tabs/LayoutTab.svelte +++ b/src/lib/components/ribbon/tabs/LayoutTab.svelte @@ -147,6 +147,7 @@ + +{#snippet colPreview(n: number)} + {@const gap = 2} + {@const w = (20 - (n - 1) * gap) / n} + +{/snippet} +