Skip to content

Commit

Permalink
Avoid adding multiple padding rules
Browse files Browse the repository at this point in the history
  • Loading branch information
talldan committed Jun 6, 2024
1 parent 37326a9 commit 91edeb9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/edit-post/src/components/layout/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ function useEditorStyles() {
! isZoomedOutView &&
! hasMetaBoxes &&
renderingMode === 'post-only' &&
! DESIGN_POST_TYPES.includes( postType )
! DESIGN_POST_TYPES.includes( postType ) &&
! baseStyles.includes( TYPEWRITER_STYLE )
) {
baseStyles.push( TYPEWRITER_STYLE );
} else if ( baseStyles.includes( TYPEWRITER_STYLE ) ) {
Expand Down

0 comments on commit 91edeb9

Please sign in to comment.