Skip to content

Commit c038273

Browse files
committed
Allow list view to scroll
1 parent f24e65d commit c038273

2 files changed

Lines changed: 14 additions & 8 deletions

File tree

packages/block-library/src/navigation/edit/menu-inspector-controls.js

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,16 @@ const MainContent = ( {
6363
'You have not yet created any menus. Displaying a list of your Pages'
6464
);
6565
return (
66-
<PrivateListView
67-
blocks={ clientIdsTree }
68-
parentId={ clientId }
69-
isExpanded={ true }
70-
description={ description }
71-
showAppender={ true }
72-
blockSettingsMenu={ LeafMoreMenu }
73-
/>
66+
<div className="wp-block-navigation__menu-inspector-controls">
67+
<PrivateListView
68+
blocks={ clientIdsTree }
69+
rootClientId={ clientId }
70+
isExpanded
71+
description={ description }
72+
showAppender
73+
blockSettingsMenu={ LeafMoreMenu }
74+
/>
75+
</div>
7476
);
7577
};
7678

packages/block-library/src/navigation/editor.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -657,3 +657,7 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
657657
.wp-block-navigation__responsive-container-open.components-button {
658658
opacity: 1;
659659
}
660+
661+
.wp-block-navigation__menu-inspector-controls {
662+
overflow-x: auto;
663+
}

0 commit comments

Comments
 (0)