From 475324a3e47029719f73a1a661e74c5c0177acda Mon Sep 17 00:00:00 2001 From: Andrew Serong <14988353+andrewserong@users.noreply.github.com> Date: Thu, 17 Nov 2022 15:44:57 +1100 Subject: [PATCH] LayoutPanel: Update to use ToolsPanel and ToolsPanelItems --- .../src/components/block-inspector/index.js | 8 + .../components/inspector-controls/groups.js | 2 + .../block-editor/src/hooks/content-layout.js | 70 ++++++++ packages/block-editor/src/hooks/layout.js | 160 +++++++++-------- packages/block-editor/src/hooks/layout.scss | 6 + .../block-editor/src/layouts/constrained.js | 167 +++++++++++------- packages/block-editor/src/layouts/flex.js | 89 ++++++++-- 7 files changed, 356 insertions(+), 146 deletions(-) create mode 100644 packages/block-editor/src/hooks/content-layout.js diff --git a/packages/block-editor/src/components/block-inspector/index.js b/packages/block-editor/src/components/block-inspector/index.js index 379d8806f2a68c..22f37a01337159 100644 --- a/packages/block-editor/src/components/block-inspector/index.js +++ b/packages/block-editor/src/components/block-inspector/index.js @@ -171,6 +171,10 @@ const BlockInspector = ( { showNoBlockSelectedMessage = true } ) => {
- { __( - 'Customize the width for all elements that are assigned to the center or wide columns.' - ) } -
-+ { __( + 'Customize the width for all elements that are assigned to the center or wide columns.' + ) } +
+ +