Skip to content

Commit

Permalink
Do not use the 'has-no-main' class name in the post editor
Browse files Browse the repository at this point in the history
  • Loading branch information
carolinan committed Jan 16, 2025
1 parent 123d66d commit 15767c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/editor/src/components/document-outline/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 && (
Expand Down

0 comments on commit 15767c7

Please sign in to comment.