From c30adc39448ef614a905ca3cab4344af224e7ae1 Mon Sep 17 00:00:00 2001 From: Khokan Sardar Date: Mon, 27 Jul 2026 19:48:41 +0530 Subject: [PATCH] Administration: Fix the update button layout in At a Glance. The 'Update to n.n.n' button was floated out of the version message line box and nudged up by five pixels. Since the admin reskin increased the button height to 40 pixels, the float no longer fitted the space it left behind and overflowed the bottom of the 'At a Glance' widget. Lay the version message out with flexbox instead. The button is now part of the paragraph's flow, so the widget grows to contain it, and its text baseline is aligned with the version text. Fixes #65733. --- src/wp-admin/css/dashboard.css | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/src/wp-admin/css/dashboard.css b/src/wp-admin/css/dashboard.css index 1f1207606439e..045017fbebbb7 100644 --- a/src/wp-admin/css/dashboard.css +++ b/src/wp-admin/css/dashboard.css @@ -724,11 +724,21 @@ body #dashboard-widgets .postbox form .submit { margin: 0; } +#dashboard_right_now #wp-version-message { + display: flex; + flex-wrap: wrap; + align-items: baseline; + gap: 5px; +} + +#dashboard_right_now #wp-version { + flex: 1; +} + #dashboard_right_now #wp-version-message .button { - float: right; - position: relative; - top: -5px; - margin-left: 5px; + /* The button is first in the markup, but is displayed after the version text. */ + order: 1; + margin-left: auto; } #dashboard_right_now p.search-engines-info {