From b63decdfe18f61cd786d8463d696798201f93f1e Mon Sep 17 00:00:00 2001 From: luchaos Date: Wed, 26 Jul 2023 01:24:04 +0200 Subject: [PATCH 1/2] fix(layout): prevent layout shift with sidebars Apply `lg:grid grid-cols-[1fr_340px] gap-4` in top brand, nav, and main content areas. Prevents layout shift and works with wide layouts (see /demo). --- app/Helpers/render/layout.php | 2 +- resources/css/legacy.css | 15 --------------- resources/css/search.css | 1 - resources/views/components/menu/main.blade.php | 2 +- .../views/components/user/top-card.blade.php | 2 +- .../views/layouts/components/brand-top.blade.php | 4 ++-- resources/views/layouts/components/main.blade.php | 10 +++++----- 7 files changed, 10 insertions(+), 26 deletions(-) diff --git a/app/Helpers/render/layout.php b/app/Helpers/render/layout.php index 5392d3ded9..cb683d27ec 100644 --- a/app/Helpers/render/layout.php +++ b/app/Helpers/render/layout.php @@ -107,7 +107,7 @@ function RenderToolbar(): void ], ]; - echo "