Skip to content

Commit

Permalink
Allow list view to scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
scruffian committed Apr 17, 2023
1 parent f24e65d commit c038273
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,16 @@ const MainContent = ( {
'You have not yet created any menus. Displaying a list of your Pages'
);
return (
<PrivateListView
blocks={ clientIdsTree }
parentId={ clientId }
isExpanded={ true }
description={ description }
showAppender={ true }
blockSettingsMenu={ LeafMoreMenu }
/>
<div className="wp-block-navigation__menu-inspector-controls">
<PrivateListView
blocks={ clientIdsTree }
rootClientId={ clientId }
isExpanded
description={ description }
showAppender
blockSettingsMenu={ LeafMoreMenu }
/>
</div>
);
};

Expand Down
4 changes: 4 additions & 0 deletions packages/block-library/src/navigation/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -657,3 +657,7 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
.wp-block-navigation__responsive-container-open.components-button {
opacity: 1;
}

.wp-block-navigation__menu-inspector-controls {
overflow-x: auto;
}

0 comments on commit c038273

Please sign in to comment.