From 113c7f284863a1cc634ad5cbd9fed2e06ea73e63 Mon Sep 17 00:00:00 2001 From: noelorin Date: Fri, 25 Sep 2026 04:07:35 +0800 Subject: [PATCH] fix(web): hide template side-rail on media pages --- app/web/src/layouts/AppLayout.astro | 67 ++++++++++++++++------------- app/web/src/styles/globals.css | 6 +++ app/web/src/views/mounts.astro | 1 + 3 files changed, 43 insertions(+), 31 deletions(-) diff --git a/app/web/src/layouts/AppLayout.astro b/app/web/src/layouts/AppLayout.astro index ddab262..9de107d 100644 --- a/app/web/src/layouts/AppLayout.astro +++ b/app/web/src/layouts/AppLayout.astro @@ -20,6 +20,8 @@ export interface Props { switchHref?: string; switchLabel?: string; seo?: PageSeoInput; + /** 媒体页只保留 AppShell 侧栏时隐藏模板 side-rail(含左让位) */ + hideSideRail?: boolean; } const { @@ -30,6 +32,7 @@ const { switchHref, switchLabel, seo, + hideSideRail = false, } = Astro.props; const brandName = brand ?? t(locale, "meta.brand"); @@ -125,38 +128,40 @@ const brandInitial = locale === "zh-CN" ? "模" : "A"; - + ) + } -
+