From 15767c70f91c20a4584f67aa39b9ed7b276cca40 Mon Sep 17 00:00:00 2001 From: Carolina Nymark Date: Thu, 16 Jan 2025 13:36:13 +0100 Subject: [PATCH] Do not use the 'has-no-main' class name in the post editor --- packages/editor/src/components/document-outline/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/editor/src/components/document-outline/index.js b/packages/editor/src/components/document-outline/index.js index da3c58b2eed920..188c6b8c887763 100644 --- a/packages/editor/src/components/document-outline/index.js +++ b/packages/editor/src/components/document-outline/index.js @@ -287,7 +287,7 @@ export default function DocumentOutline( { className={ clsx( 'document-outline', headings.length < 1 && 'has-no-headings', - mainElements.length === 0 && 'has-no-main' + isEditingTemplate && mainElements.length === 0 && 'has-no-main' ) } > { headings.length < 1 && (