diff --git a/contentrepo/static/css/contentrepo.css b/contentrepo/static/css/contentrepo.css index 115c5f220..874920fe2 100644 --- a/contentrepo/static/css/contentrepo.css +++ b/contentrepo/static/css/contentrepo.css @@ -88,4 +88,40 @@ pre { } * { box-sizing: border-box; -} \ No newline at end of file +} + +/* Wagtail admin header actions: keep consistent spacing next to search */ +.w-header--hasform .right { + align-items: center; + display: flex; + flex-wrap: wrap; + gap: 0.75rem; + justify-content: flex-end; +} + +.w-header--hasform .right > .actionbutton, +.w-header--hasform .right > .dropdown { + margin: 0; +} + +.w-header--hasform .right.is-wrapped { + justify-content: flex-end; + margin-top: 0.75rem; +} + +/* ModelAdmin override uses header-right as the action wrapper */ +.w-header--hasform .header-right { + align-items: center; + display: flex; + flex-wrap: wrap; + gap: 0.75rem; + margin: 0; +} + +/* When the header wraps, make actions flow as a tidy full-width row */ +@media (max-width: 1200px) { + .w-header--hasform .right { + justify-content: flex-end; + width: 100%; + } +} diff --git a/home/templates/modeladmin/index.html b/home/templates/modeladmin/index.html index dc8f11507..bd0e9daab 100644 --- a/home/templates/modeladmin/index.html +++ b/home/templates/modeladmin/index.html @@ -3,7 +3,7 @@ {% block header_extra %} -
+
{% if view.list_export or user_can_create %}
{% if user_can_create %} diff --git a/home/templates/wagtailadmin/base.html b/home/templates/wagtailadmin/base.html index 0c2a878f7..f9cb2fb64 100644 --- a/home/templates/wagtailadmin/base.html +++ b/home/templates/wagtailadmin/base.html @@ -4,6 +4,30 @@ {% get_settings %} {% block furniture %} +