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;