diff --git a/shared/.changeset/header-stays-full-width-in-wide-page.md b/shared/.changeset/header-stays-full-width-in-wide-page.md new file mode 100644 index 0000000..bc1cae6 --- /dev/null +++ b/shared/.changeset/header-stays-full-width-in-wide-page.md @@ -0,0 +1,5 @@ +--- +"@gabriel20xx/web-ui": patch +--- + +Keep the shared header full width when the wide-page setting is on. The `data-wide-layout` rule no longer narrows `.sc-header` with `calc(100% - 2rem)` and auto margins, which left a gap on both sides of the header. Only `.sc-main` widens now, so the header looks the same in every application whether or not the page is wide. diff --git a/shared/packages/web-ui/src/lib/styles.css b/shared/packages/web-ui/src/lib/styles.css index 8b42a04..6af6eda 100644 --- a/shared/packages/web-ui/src/lib/styles.css +++ b/shared/packages/web-ui/src/lib/styles.css @@ -41,11 +41,6 @@ html[data-wide-layout='true'] .sc-main { width: calc(100% - 2rem); } -html[data-wide-layout='true'] .sc-header { - width: calc(100% - 2rem); - margin-inline: auto; -} - .sc-header { position: sticky; z-index: 20; diff --git a/shared/shared-styles.css b/shared/shared-styles.css index 86b86c8..8e50343 100644 --- a/shared/shared-styles.css +++ b/shared/shared-styles.css @@ -41,11 +41,6 @@ html[data-wide-layout='true'] .sc-main { width: calc(100% - 2rem); } -html[data-wide-layout='true'] .sc-header { - width: calc(100% - 2rem); - margin-inline: auto; -} - .sc-header { position: sticky; z-index: 20;