From 94a5c0b9ae6f6ec0c58d1248bb23051df6367ef1 Mon Sep 17 00:00:00 2001 From: Gabriel20xx Date: Wed, 16 Sep 2026 23:38:03 +0200 Subject: [PATCH] fix: make wide page preference affect shared shell --- packages/web-ui/src/lib/styles.css | 7 +++++++ shared-styles.css | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/packages/web-ui/src/lib/styles.css b/packages/web-ui/src/lib/styles.css index 7c74658..955d273 100644 --- a/packages/web-ui/src/lib/styles.css +++ b/packages/web-ui/src/lib/styles.css @@ -34,6 +34,13 @@ padding: 1rem 0 1rem; } +/* The page-width preference is owned by each consumer application. The shared shell only + provides the common width cap, so this global hook lets the current app widen that shell as + soon as its settings checkbox updates the document attribute. */ +html[data-wide-layout='true'] .sc-main { + width: calc(100% - 2rem); +} + .sc-header { position: sticky; z-index: 20; diff --git a/shared-styles.css b/shared-styles.css index bdfa980..75128d8 100644 --- a/shared-styles.css +++ b/shared-styles.css @@ -36,6 +36,13 @@ padding: 1rem 0 1rem; } +/* The page-width preference is owned by each consumer application. The shared shell only + provides the common width cap, so this global hook lets the current app widen that shell as + soon as its settings checkbox updates the document attribute. */ +html[data-wide-layout='true'] .sc-main { + width: calc(100% - 2rem); +} + .sc-header { position: sticky; z-index: 20;