From 3ef7fe3fe6d67012628b33f00cf7b6f5fe39f555 Mon Sep 17 00:00:00 2001 From: tajniak81 <13187254+tajniak81@users.noreply.github.com> Date: Tue, 17 Nov 2026 13:29:23 +0100 Subject: [PATCH] Let page columns grow on wide screens Full width pages now fill the window instead of stopping at 1040px, on the web and in the native editor. The standard and wide columns widen on very large windows (up to 960px and 1440px) and are unchanged below 1800px. Co-Authored-By: Claude Opus 5.5 --- Packages/editor-bridge/src/style.css | 2 +- Packages/ui/src/theme.css | 5 +++-- Web-App/frontend/src/views/page/PageView.vue | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Packages/editor-bridge/src/style.css b/Packages/editor-bridge/src/style.css index 61d1839..1c107f6 100644 --- a/Packages/editor-bridge/src/style.css +++ b/Packages/editor-bridge/src/style.css @@ -27,5 +27,5 @@ body { padding: 16px max(16px, env(safe-area-inset-right)) 96px max(16px, env(safe-area-inset-left)); } .dw-full-width #editor { - max-width: var(--container-doc-wide); + max-width: none; } diff --git a/Packages/ui/src/theme.css b/Packages/ui/src/theme.css index c4989b5..003a41f 100644 --- a/Packages/ui/src/theme.css +++ b/Packages/ui/src/theme.css @@ -97,8 +97,9 @@ --shadow-dialog: var(--dw-shadow-dialog); /* Sizes: max-w-doc, w-sidebar, h-control-md … (spacing is Tailwind's 4px scale). */ - --container-doc: 720px; - --container-doc-wide: 1040px; + /* Columns grow on very wide windows: 720px until 1800px, then 40vw up to 960px. */ + --container-doc: clamp(720px, 40vw, 960px); + --container-doc-wide: clamp(1040px, 55vw, 1440px); --spacing-sidebar: 264px; --spacing-control-sm: 28px; --spacing-control-md: 34px; diff --git a/Web-App/frontend/src/views/page/PageView.vue b/Web-App/frontend/src/views/page/PageView.vue index 285bac4..133771e 100644 --- a/Web-App/frontend/src/views/page/PageView.vue +++ b/Web-App/frontend/src/views/page/PageView.vue @@ -889,7 +889,7 @@ const purge = () => class="dw-print-page mx-auto min-w-0 flex-1 px-4 pt-6 pb-16 sm:px-16 sm:pt-10" :class="[ record ? '[&>*:not(.dw-record-host)]:hidden' : '', - page?.fullWidth ? 'max-w-doc-wide' : 'max-w-doc', + page?.fullWidth ? 'max-w-none' : 'max-w-doc', page?.font ? `dw-font-${page.font}` : '', prefs.textSize !== 'md' ? `dw-size-${prefs.textSize}` : '', ]"