diff --git a/packages/edit-site/src/components/sidebar-navigation-screen-pages/index.js b/packages/edit-site/src/components/sidebar-navigation-screen-pages/index.js index 2ece05651cd3f3..5f4958f44d2514 100644 --- a/packages/edit-site/src/components/sidebar-navigation-screen-pages/index.js +++ b/packages/edit-site/src/components/sidebar-navigation-screen-pages/index.js @@ -28,16 +28,13 @@ const PageItem = ( { postId, ...props } ) => { export default function SidebarNavigationScreenPages() { const { records: pages, isResolving: isLoading } = useEntityRecords( 'postType', - 'page', - { - orderby: 'date', - } + 'page' ); return ( { isLoading && ( @@ -66,7 +63,7 @@ export default function SidebarNavigationScreenPages() { ) ) } { document.location = diff --git a/packages/edit-site/src/components/sidebar-navigation-screen-pages/style.scss b/packages/edit-site/src/components/sidebar-navigation-screen-pages/style.scss new file mode 100644 index 00000000000000..7bbdd103b6bcea --- /dev/null +++ b/packages/edit-site/src/components/sidebar-navigation-screen-pages/style.scss @@ -0,0 +1,4 @@ +.edit-site-sidebar-navigation-screen-pages__see-all { + /* Overrides the margin that comes from the Item component */ + margin-top: $grid-unit-20 !important; +} diff --git a/packages/edit-site/src/style.scss b/packages/edit-site/src/style.scss index 7137f6c7c1172a..679d13a08277ac 100644 --- a/packages/edit-site/src/style.scss +++ b/packages/edit-site/src/style.scss @@ -26,6 +26,7 @@ @import "./components/sidebar-button/style.scss"; @import "./components/sidebar-navigation-item/style.scss"; @import "./components/sidebar-navigation-screen/style.scss"; +@import "./components/sidebar-navigation-screen-pages/style.scss"; @import "./components/sidebar-navigation-screen-template/style.scss"; @import "./components/sidebar-navigation-screen-templates/style.scss"; @import "./components/sidebar-navigation-subtitle/style.scss";