From 6f92a71253e93e68eadc9d816e3d4e4ba03caccf Mon Sep 17 00:00:00 2001 From: Sage Abdullah Date: Tue, 12 Dec 2023 14:21:59 +0000 Subject: [PATCH] Move page explorer header's extra spacing to CSS For better colocation with the CSS that increases the font size --- client/scss/components/_listing.scss | 2 ++ .../admin/templates/wagtailadmin/pages/page_listing_header.html | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/client/scss/components/_listing.scss b/client/scss/components/_listing.scss index 5c923047a3..cf31a55254 100644 --- a/client/scss/components/_listing.scss +++ b/client/scss/components/_listing.scss @@ -414,6 +414,8 @@ table.listing { } .page-explorer .w-breadcrumbs { + @apply sm:w-py-2.5; + li[hidden] ~ li:last-child, li:only-child { a { diff --git a/wagtail/admin/templates/wagtailadmin/pages/page_listing_header.html b/wagtail/admin/templates/wagtailadmin/pages/page_listing_header.html index 63712d8a98..2a3ddaeff3 100644 --- a/wagtail/admin/templates/wagtailadmin/pages/page_listing_header.html +++ b/wagtail/admin/templates/wagtailadmin/pages/page_listing_header.html @@ -3,7 +3,7 @@ {% block breadcrumbs %} {# breadcrumbs #} - {% page_breadcrumbs parent_page 'wagtailadmin_explore' url_root_name='wagtailadmin_explore_root' is_expanded=parent_page.is_root classname='sm:w-py-2.5' %} + {% page_breadcrumbs parent_page 'wagtailadmin_explore' url_root_name='wagtailadmin_explore_root' is_expanded=parent_page.is_root %} {% endblock %} {% block actions %}