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