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 ac71e909a01bed..8cfd041f36d3cc 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 @@ -180,38 +180,39 @@ export default function SidebarNavigationScreenPages() { ); } ) } - - { dynamicPageTemplates?.map( ( item ) => ( - - - { decodeEntities( - item.title?.rendered || - __( '(no title)' ) - ) } - - - ) ) } - { - document.location = - 'edit.php?post_type=page'; - } } - > - { __( 'Manage all pages' ) } - - ) } } + footer={ + + { dynamicPageTemplates?.map( ( item ) => ( + + + { decodeEntities( + item.title?.rendered || + __( '(no title)' ) + ) } + + + ) ) } + { + document.location = 'edit.php?post_type=page'; + } } + > + { __( 'Manage all pages' ) } + + + } /> ); diff --git a/packages/edit-site/src/components/sidebar-navigation-screen-templates/index.js b/packages/edit-site/src/components/sidebar-navigation-screen-templates/index.js index fc0caffc213353..3da819b132c2c1 100644 --- a/packages/edit-site/src/components/sidebar-navigation-screen-templates/index.js +++ b/packages/edit-site/src/components/sidebar-navigation-screen-templates/index.js @@ -147,34 +147,28 @@ export default function SidebarNavigationScreenTemplates() { ) } ) ) } - { ! isMobileViewport && ( - <> - - { config[ postType ].labels.manage } - - { !! config[ postType ].labels - .reusableBlocks && ( - - { - config[ postType ].labels - .reusableBlocks - } - - ) } - - ) } ) } } + footer={ + ! isMobileViewport && ( + <> + + { config[ postType ].labels.manage } + + { !! config[ postType ].labels.reusableBlocks && ( + + { config[ postType ].labels.reusableBlocks } + + ) } + + ) + } /> ); } diff --git a/packages/edit-site/src/components/sidebar-navigation-screen-templates/style.scss b/packages/edit-site/src/components/sidebar-navigation-screen-templates/style.scss deleted file mode 100644 index 432774f903e465..00000000000000 --- a/packages/edit-site/src/components/sidebar-navigation-screen-templates/style.scss +++ /dev/null @@ -1,4 +0,0 @@ -.edit-site-sidebar-navigation-screen-templates__see-all { - /* Overrides the margin that comes from the Item component */ - margin-top: $grid-unit-20 !important; -} diff --git a/packages/edit-site/src/components/sidebar-navigation-screen/style.scss b/packages/edit-site/src/components/sidebar-navigation-screen/style.scss index a4aa61ba811417..9f270d25a4e487 100644 --- a/packages/edit-site/src/components/sidebar-navigation-screen/style.scss +++ b/packages/edit-site/src/components/sidebar-navigation-screen/style.scss @@ -82,7 +82,7 @@ } } -.edit-site-sidebar-navigation-screen__sticky-section.edit-site-sidebar-navigation-screen__sticky-section { +.edit-site-sidebar-navigation-screen__footer { position: sticky; bottom: 0; background-color: $gray-900; @@ -92,10 +92,3 @@ border-top: 1px solid $gray-800; box-shadow: 0 #{-$grid-unit-10} $grid-unit-20 $gray-900; } - -.edit-site-sidebar-navigation-screen__footer { - position: sticky; - bottom: 0; - background-color: $gray-900; - padding: $grid-unit-20 0; -} diff --git a/packages/edit-site/src/style.scss b/packages/edit-site/src/style.scss index e921cb70106f85..916d8291532449 100644 --- a/packages/edit-site/src/style.scss +++ b/packages/edit-site/src/style.scss @@ -33,7 +33,6 @@ @import "./components/sidebar-navigation-screen-navigation-menu/style.scss"; @import "./components/sidebar-navigation-screen-page/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"; @import "./components/site-hub/style.scss"; @import "./components/sidebar-navigation-screen-navigation-menus/style.scss";