From d3fb704ad1034bd08d173052a54979bf7d552dc2 Mon Sep 17 00:00:00 2001 From: Xylight Date: Mon, 5 Aug 2024 15:20:19 -0700 Subject: [PATCH] layout: fix weird separation at high widths --- src/lib/components/ui/layout/Shell.svelte | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/lib/components/ui/layout/Shell.svelte b/src/lib/components/ui/layout/Shell.svelte index 2839c66b..a1ac15c9 100644 --- a/src/lib/components/ui/layout/Shell.svelte +++ b/src/lib/components/ui/layout/Shell.svelte @@ -153,8 +153,11 @@ 'content'; } - .content { + .content:not(.limit-width) { width: 100%; + } + + .content { display: grid; margin-left: auto; margin-right: auto; @@ -163,15 +166,10 @@ grid-template-areas: 'main'; justify-items: start; } - .content > * { - width: 100%; /* Full width for immediate children */ - max-width: 100rem; /* Limit width */ - padding: 0 1rem; /* Add some padding on smaller screens */ - } @media (min-width: 768px) { .content { - grid-template-columns: 14rem 2fr; + grid-template-columns: 15rem 2fr; justify-items: end start; grid-template-areas: 'sidebar main'; }