Skip to content

Commit

Permalink
Fix small visual regression in the inspector (#9654)
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Sep 6, 2018
1 parent 8517779 commit 8780cf8
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions packages/editor/src/components/block-inspector/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,19 @@ const BlockInspector = ( { selectedBlock, blockType, count } ) => {
</div>
</div>,
<div key="inspector-controls"><InspectorControls.Slot /></div>,
<InspectorAdvancedControls.Slot key="inspector-advanced-controls">
{ ( fills ) => ! isEmpty( fills ) && (
<PanelBody
className="editor-block-inspector__advanced"
title={ __( 'Advanced' ) }
initialOpen={ false }
>
{ fills }
</PanelBody>
) }
</InspectorAdvancedControls.Slot>,
<div key="inspector-advanced-controls">
<InspectorAdvancedControls.Slot>
{ ( fills ) => ! isEmpty( fills ) && (
<PanelBody
className="editor-block-inspector__advanced"
title={ __( 'Advanced' ) }
initialOpen={ false }
>
{ fills }
</PanelBody>
) }
</InspectorAdvancedControls.Slot>
</div>,
<SkipToSelectedBlock key="back" />,
];
};
Expand Down

0 comments on commit 8780cf8

Please sign in to comment.