Skip to content

Commit

Permalink
Stabilise grid layout visualiser and resizer.
Browse files Browse the repository at this point in the history
  • Loading branch information
tellthemachines committed May 14, 2024
1 parent b941a1e commit 58e9477
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
4 changes: 1 addition & 3 deletions packages/block-editor/src/hooks/layout-child.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,7 @@ function ChildLayoutControlsPure( { clientId, style, setAttributes } ) {
if ( parentLayoutType !== 'grid' ) {
return null;
}
if ( ! window.__experimentalEnableGridInteractivity ) {
return null;
}

return (
<>
<GridVisualizer clientId={ rootClientId } />
Expand Down
3 changes: 0 additions & 3 deletions packages/block-editor/src/layouts/grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,6 @@ export default {
);
},
toolBarControls: function GridLayoutToolbarControls( { clientId } ) {
if ( ! window.__experimentalEnableGridInteractivity ) {
return null;
}
return <GridVisualizer clientId={ clientId } />;
},
getLayoutStyle: function getLayoutStyle( {
Expand Down

0 comments on commit 58e9477

Please sign in to comment.