From 193b5ced12395ddbff50146fdb217bd20680d2af Mon Sep 17 00:00:00 2001 From: gbanyan Date: Mon, 17 Nov 2025 22:58:09 +0800 Subject: [PATCH] Revert layout shell width to original uniform container --- components/layout-shell.tsx | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/components/layout-shell.tsx b/components/layout-shell.tsx index 9635515..ed1cdf6 100644 --- a/components/layout-shell.tsx +++ b/components/layout-shell.tsx @@ -1,27 +1,14 @@ -'use client'; - -import { usePathname } from 'next/navigation'; import { SiteHeader } from './site-header'; import { SiteFooter } from './site-footer'; import { RightSidebar } from './right-sidebar'; import { BackToTop } from './back-to-top'; export function LayoutShell({ children }: { children: React.ReactNode }) { - const pathname = usePathname(); - const isDetailPage = - pathname.startsWith('/blog/') || pathname.startsWith('/pages/'); - - const gridColsClass = isDetailPage - ? 'lg:grid-cols-[minmax(0,3.6fr)_minmax(0,1.2fr)]' - : 'lg:grid-cols-[minmax(0,2.6fr)_minmax(0,1.4fr)]'; - return (
-
-
+
+
{children}