diff --git a/client/scss/components/_avatar.scss b/client/scss/components/_avatar.scss
index 0435c9f5cfe2..172a6e4cdc7e 100644
--- a/client/scss/components/_avatar.scss
+++ b/client/scss/components/_avatar.scss
@@ -62,7 +62,7 @@
position: absolute;
top: 100%;
inset-inline-start: 50%;
- transform: translate(-50%, -50%);
+ transform: translate(calc(var(--w-direction-factor) * -50%), -50%);
background-color: theme('colors.surface-page');
.icon {
diff --git a/client/scss/components/_header.scss b/client/scss/components/_header.scss
index 7c605427ab01..ad126efeb984 100644
--- a/client/scss/components/_header.scss
+++ b/client/scss/components/_header.scss
@@ -27,10 +27,6 @@
max-width: 1em;
max-height: 1em;
}
-
- &.avatar {
- margin-inline-start: calc(0 - theme('spacing.2'));
- }
}
.w-header__subtitle {
@@ -99,10 +95,6 @@
margin-inline-end: 2em;
}
- .avatar.small {
- margin-inline-start: 0;
- }
-
a {
font-weight: theme('fontWeight.bold');
}
@@ -121,12 +113,6 @@
padding-inline-start: 0;
}
- .w-header__glyph {
- &.avatar {
- margin-inline-start: calc(0 - theme('spacing.9'));
- }
- }
-
.left {
float: inline-start;
margin-inline-end: 0;
diff --git a/client/scss/components/_indicator.scss b/client/scss/components/_indicator.scss
index fb311149962b..38f4da1aebb4 100644
--- a/client/scss/components/_indicator.scss
+++ b/client/scss/components/_indicator.scss
@@ -19,13 +19,9 @@
.icon {
padding: 2px;
vertical-align: middle; // reset vertical-align set by icon.initial
-
- .w-dashboard & {
- padding: 0;
- }
}
&--is-inverse {
- opacity: theme('opacity.30');
+ opacity: theme('opacity.50');
}
}
diff --git a/client/scss/components/_listing.scss b/client/scss/components/_listing.scss
index ebb25dc240a0..f5a8d44022b3 100644
--- a/client/scss/components/_listing.scss
+++ b/client/scss/components/_listing.scss
@@ -369,12 +369,73 @@ ul.listing {
&--dashboard {
margin-bottom: 0;
- .title-wrapper {
+ tbody {
+ border-bottom: 0;
+ }
+
+ td:first-child {
+ padding-inline-start: theme('spacing.6');
+ }
+
+ td:last-child {
+ padding-inline-end: theme('spacing.6');
+ }
+
+ .title a {
font-weight: theme('fontWeight.medium');
}
- .actions {
- float: none;
+ .w-status--label {
+ float: inline-end;
+ font-size: inherit;
+ }
+
+ .indicator .icon {
+ padding: 0;
+ }
+
+ .privacy-indicator {
+ margin-inline-end: theme('spacing.2');
+
+ // Adjust icon size to closely match the appearance of the adjacent 'locked' icon
+ .icon-no-view {
+ width: 1.1em;
+ height: 1.1em;
+ }
+ }
+
+ .tasks {
+ text-wrap: nowrap;
+ }
+
+ .actions li {
+ float: inline-end;
+ }
+
+ @include media-breakpoint-down(md) {
+ display: grid;
+
+ tr {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: center;
+ gap: theme('spacing.2');
+ padding: theme('spacing.5');
+ }
+
+ td,
+ td:first-child,
+ td:last-child {
+ padding: 0;
+ }
+
+ .title {
+ width: 100%;
+ }
+
+ .actions-container {
+ margin-inline-start: auto;
+ }
}
}
}
@@ -628,7 +689,7 @@ table.listing {
// - no bulk actions are present,
// - we're not in the "custom ordering" mode,
// then apply the same 80px padding via the first column's left padding.
- &:not(.nice-padding &, .w-dashboard &, .report &, .editor-view &):not(
+ &:not(.nice-padding &, .report &, .editor-view &, .w-dashboard &):not(
:has(
td:first-child input[type='checkbox']:only-child,
th:first-child input[type='checkbox']:only-child,
diff --git a/client/scss/components/_panel.scss b/client/scss/components/_panel.scss
index 66ab5c5d741a..1974339cc7db 100644
--- a/client/scss/components/_panel.scss
+++ b/client/scss/components/_panel.scss
@@ -162,15 +162,19 @@ $header-button-size: theme('spacing.6');
}
.w-panel--dashboard {
- @include box();
- padding-bottom: 0;
+ border: 1px solid theme('colors.border-furniture');
+ border-radius: 5px;
margin-bottom: calc(
theme('spacing.4') + theme('spacing.4') * var(--w-density-factor)
);
.w-panel__header {
- margin-inline-start: calc(-1 * theme('spacing.5'));
- padding-bottom: theme('spacing.5');
+ padding: theme('spacing.5');
+ margin-inline-start: 0;
+
+ @include media-breakpoint-up(sm) {
+ margin-inline-start: calc(-1 * theme('spacing.5'));
+ }
}
.w-panel__heading {
diff --git a/client/scss/components/_status-tag.scss b/client/scss/components/_status-tag.scss
index 2204907324ef..6b0e606afb3a 100644
--- a/client/scss/components/_status-tag.scss
+++ b/client/scss/components/_status-tag.scss
@@ -36,10 +36,6 @@
border-radius: theme('borderRadius.xl');
// stylelint-disable-next-line property-disallowed-list
text-transform: none;
-
- .w-dashboard & {
- float: inline-end;
- }
}
}
diff --git a/client/scss/components/_summary.scss b/client/scss/components/_summary.scss
index 4b5103c66112..b14178eb9fa3 100644
--- a/client/scss/components/_summary.scss
+++ b/client/scss/components/_summary.scss
@@ -1,6 +1,6 @@
.w-summary {
color: theme('colors.text-link-default');
- margin-bottom: theme('spacing.8');
+ margin-bottom: theme('spacing.3');
padding-top: theme('spacing.1');
.w-summary__list {
diff --git a/client/scss/core.scss b/client/scss/core.scss
index fd3b6c837eb5..51c2750825ec 100644
--- a/client/scss/core.scss
+++ b/client/scss/core.scss
@@ -176,7 +176,6 @@ These are classes that provide overrides.
@import 'layouts/404';
@import 'layouts/compare-revisions';
-@import 'layouts/home';
@import 'layouts/login';
@import 'layouts/account';
@import 'layouts/workflow-progress';
diff --git a/client/scss/layouts/_home.scss b/client/scss/layouts/_home.scss
deleted file mode 100644
index 86f430e72e88..000000000000
--- a/client/scss/layouts/_home.scss
+++ /dev/null
@@ -1,10 +0,0 @@
-.homepage {
- .listing tbody {
- border-bottom: 0;
- }
-
- .task .icon {
- // pull out the icon so it aligns with no-icon text
- margin-inline-start: -1.75em;
- }
-}
diff --git a/wagtail/admin/site_summary.py b/wagtail/admin/site_summary.py
index 3d585b7221f3..b4671530b106 100644
--- a/wagtail/admin/site_summary.py
+++ b/wagtail/admin/site_summary.py
@@ -55,7 +55,6 @@ def is_shown(self):
class SiteSummaryPanel(Component):
- name = "site_summary"
template_name = "wagtailadmin/home/site_summary.html"
def __init__(self, request):
diff --git a/wagtail/admin/templates/wagtailadmin/home.html b/wagtail/admin/templates/wagtailadmin/home.html
index 1ff94165a734..c34b308a1188 100644
--- a/wagtail/admin/templates/wagtailadmin/home.html
+++ b/wagtail/admin/templates/wagtailadmin/home.html
@@ -1,6 +1,5 @@
{% extends "wagtailadmin/generic/base.html" %}
{% load wagtailadmin_tags i18n %}
-{% block bodyclass %}homepage{% endblock %}
{% block extra_css %}
{{ block.super }}
@@ -10,22 +9,36 @@
{% block content %}
{% fragment as header_title %}
{% block branding_welcome %}
- {% trans site_name|title %}
+ {{ site_name|title }}
{% endblock %}
{% endfragment %}
{% component upgrade_notification %}
-
+
-
+
{{ header_title }}
{% component site_summary %}
+
+
+
{% include "wagtailadmin/home/account_summary.html" %}
{% if panels %}
{% for panel in panels %}
- {% component panel %}
+ {% component panel fallback_render_method=True %}
{% endfor %}
{% else %}
{% trans "This is your dashboard on which helpful information about content you've created will be displayed." %}
diff --git a/wagtail/admin/templates/wagtailadmin/home/account_summary.html b/wagtail/admin/templates/wagtailadmin/home/account_summary.html
index 89897b6bf893..1d36d4e3f1b5 100644
--- a/wagtail/admin/templates/wagtailadmin/home/account_summary.html
+++ b/wagtail/admin/templates/wagtailadmin/home/account_summary.html
@@ -1,14 +1,14 @@
{% load wagtailadmin_tags wagtailcore_tags i18n %}
{% wagtail_version as current_version %}
-
+
{% avatar_url user 80 as avatar %}
-
-
{{ user|user_display_name }}
+
{{ user|user_display_name }}
diff --git a/wagtail/admin/templates/wagtailadmin/home/locked_pages.html b/wagtail/admin/templates/wagtailadmin/home/locked_pages.html
index 2a1e0113ca3d..e6e8ff9fdb24 100644
--- a/wagtail/admin/templates/wagtailadmin/home/locked_pages.html
+++ b/wagtail/admin/templates/wagtailadmin/home/locked_pages.html
@@ -4,18 +4,19 @@
{% panel id="locked-pages" heading=_("Your locked pages") classname="w-panel--dashboard" %}
+
+
-
-
-
+
{% trans "Title" %} |
- {% comment %} added for visual alignment only {% endcomment %} |
- {% comment %} added for visual alignment only {% endcomment %} |
- {% comment %} added for visual alignment only {% endcomment %} |
+ {% trans "Language" %} |
+ {% trans "Privacy and access" %} |
+ {% trans "Status" %} |
{% trans "Locked at" %} |
+ {% comment %} added for visual alignment only {% endcomment %} |
@@ -24,18 +25,22 @@
{{ page.get_admin_display_title }}
- {% i18n_enabled as show_locale_labels %}
- {% if show_locale_labels and page.locale_id %}
- {% locale_label_from_id page.locale_id as locale_label %}
- {% status locale_label classname="w-status--label" %}
- {% endif %}
|
+
+ {% i18n_enabled as show_locale_labels %}
+ {% if show_locale_labels and page.locale_id %}
+ {% locale_label_from_id page.locale_id as locale_label %}
+ {% status locale_label classname="w-status--label" %}
+ {% endif %}
+ |
{% include "wagtailadmin/pages/listing/_privacy_indicator.html" with page=page %}
{% include "wagtailadmin/pages/listing/_locked_indicator.html" with page=page %}
|
-
+ | {% include "wagtailadmin/shared/page_status_tag.html" with page=page %} |
+ {% human_readable_date page.locked_at %} |
+
-
{% dropdown toggle_icon="dots-horizontal" toggle_aria_label=_("Actions") %}
@@ -63,8 +68,6 @@
|
- {# Deliberately empty #} |
- {% human_readable_date page.locked_at %} |
{% endfor %}
diff --git a/wagtail/admin/templates/wagtailadmin/home/recent_edits.html b/wagtail/admin/templates/wagtailadmin/home/recent_edits.html
index 73bec8405101..2ee281e02aeb 100644
--- a/wagtail/admin/templates/wagtailadmin/home/recent_edits.html
+++ b/wagtail/admin/templates/wagtailadmin/home/recent_edits.html
@@ -5,17 +5,19 @@
{% panel id="recent-edits" heading=_("Your most recent edits") classname="w-panel--dashboard" %}
+
+
-
{% trans "Title" %} |
- {% comment %} added for visual alignment only {% endcomment %} |
- {% comment %} added for visual alignment only {% endcomment %} |
+ {% trans "Language" %} |
+ {% trans "Privacy and access" %} |
{% trans "Status" %} |
{% trans "Date" %} |
+ {% comment %} added for visual alignment only {% endcomment %} |
@@ -24,19 +26,24 @@
{{ page.get_admin_display_title }}
-
- {% i18n_enabled as show_locale_labels %}
- {% if show_locale_labels and page.locale_id %}
- {% locale_label_from_id page.locale_id as locale_label %}
- {% status locale_label classname="w-status--label" %}
- {% endif %}
|
+
+ {% i18n_enabled as show_locale_labels %}
+ {% if show_locale_labels and page.locale_id %}
+ {% locale_label_from_id page.locale_id as locale_label %}
+ {% status locale_label classname="w-status--label" %}
+ {% endif %}
+ |
{% include "wagtailadmin/pages/listing/_privacy_indicator.html" with page=page %}
{% include "wagtailadmin/pages/listing/_locked_indicator.html" with page=page %}
|
+ {% include "wagtailadmin/shared/page_status_tag.html" with page=page %}
+ |
+ {% human_readable_date last_edited_at %} |
+
-
{% dropdown toggle_icon="dots-horizontal" toggle_aria_label=_("Actions") %}
@@ -54,10 +61,6 @@
|
-
- {% include "wagtailadmin/shared/page_status_tag.html" with page=page %}
- |
- {% human_readable_date last_edited_at %} |
{% endfor %}
diff --git a/wagtail/admin/templates/wagtailadmin/home/upgrade_notification.html b/wagtail/admin/templates/wagtailadmin/home/upgrade_notification.html
index ec004c90a3cf..68a0ac83e463 100644
--- a/wagtail/admin/templates/wagtailadmin/home/upgrade_notification.html
+++ b/wagtail/admin/templates/wagtailadmin/home/upgrade_notification.html
@@ -1,6 +1,6 @@
{% load i18n wagtailcore_tags wagtailadmin_tags %}
{% wagtail_version as current_version %}
-