From abc255dd6dfb08fddefd531f984048b554bbd437 Mon Sep 17 00:00:00 2001 From: t0ng7u Date: Thu, 7 May 2026 03:26:22 +0800 Subject: [PATCH] =?UTF-8?q?=E2=98=80=20fix(default):=20keep=20SectionPageL?= =?UTF-8?q?ayout=20description=20slot=20hidden?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Keep SectionPageLayout.Description as a non-rendering composition slot so callers stay compatible while page subtitles remain hidden across the app. --- .../components/layout/components/section-page-layout.tsx | 8 -------- 1 file changed, 8 deletions(-) diff --git a/web/default/src/components/layout/components/section-page-layout.tsx b/web/default/src/components/layout/components/section-page-layout.tsx index 2e83fbdc..600af58c 100644 --- a/web/default/src/components/layout/components/section-page-layout.tsx +++ b/web/default/src/components/layout/components/section-page-layout.tsx @@ -45,7 +45,6 @@ export function SectionPageLayout(props: SectionPageLayoutProps) { ) let title: ReactNode = null - let description: ReactNode = null let actions: ReactNode = null let content: ReactNode = null let breadcrumb: ReactNode = null @@ -54,8 +53,6 @@ export function SectionPageLayout(props: SectionPageLayoutProps) { if (!isValidElement(node)) return const child = node as ReactElement if (child.type === SectionPageLayoutTitle) title = child.props.children - else if (child.type === SectionPageLayoutDescription) - description = child.props.children else if (child.type === SectionPageLayoutActions) actions = child.props.children else if (child.type === SectionPageLayoutContent) @@ -76,11 +73,6 @@ export function SectionPageLayout(props: SectionPageLayoutProps) {

{title}

- {description != null && ( -

- {description} -

- )} {actions != null && (