From 6fe3a88592a2bec96287b67561f4a0b14938a7f2 Mon Sep 17 00:00:00 2001 From: magdev Date: Thu, 22 Jan 2026 18:08:40 +0100 Subject: [PATCH] Fix download filename and icon wrapping in versions list Wrap filename link and media-archive icon in a flex container with white-space: nowrap to keep them on a single line. Co-Authored-By: Claude Opus 4.5 --- assets/css/admin.css | 13 +++++++++++++ src/Admin/VersionAdminController.php | 28 ++++++++++++++++------------ 2 files changed, 29 insertions(+), 12 deletions(-) diff --git a/assets/css/admin.css b/assets/css/admin.css index 618bb9a..e540853 100644 --- a/assets/css/admin.css +++ b/assets/css/admin.css @@ -167,6 +167,19 @@ code.file-hash { display: none; } +/* Version download link - keep filename and icon on single line */ +.version-download-link { + display: inline-flex; + align-items: center; + white-space: nowrap; +} + +.version-download-link .dashicons-media-archive { + color: #2271b1; + flex-shrink: 0; + margin-left: 5px; +} + #versions-table .dashicons-media-archive { color: #2271b1; vertical-align: middle; diff --git a/src/Admin/VersionAdminController.php b/src/Admin/VersionAdminController.php index 24bfcc0..b50cd13 100644 --- a/src/Admin/VersionAdminController.php +++ b/src/Admin/VersionAdminController.php @@ -157,12 +157,14 @@ final class VersionAdminController $filename = $version->getDownloadFilename(); if ($effectiveUrl): ?> - - - - getAttachmentId()): ?> - - + + + + + getAttachmentId()): ?> + + + @@ -386,12 +388,14 @@ final class VersionAdminController $filename = $version->getDownloadFilename(); if ($effectiveUrl): ?> - - - - getAttachmentId()): ?> - - + + + + + getAttachmentId()): ?> + + +