From 651d4007a09c231ddea410f31a43375013bd280b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20de=20la=20Pen=CC=83a?= Date: Sat, 3 Oct 2026 10:59:46 +0100 Subject: [PATCH 1/4] feat: permit the 70x70 crop used for 2x user cells --- composer.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 3accef4e..f9fc06b0 100644 --- a/composer.json +++ b/composer.json @@ -85,7 +85,8 @@ "nails/module-cdn": { "permitted-image-dimensions": [ "30x30", - "35x35" + "35x35", + "70x70" ] } } From 912af256ca195fdc19f769d96c1f153e190eb123 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20de=20la=20Pen=CC=83a?= Date: Sat, 3 Oct 2026 10:59:46 +0100 Subject: [PATCH 2/4] feat: serve user-cell avatars through the picture helper The 2x candidate is a real 70px crop, so a cached 35px file is never requested with an @2x suffix. --- admin/views/_components/table-cell-user.php | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/admin/views/_components/table-cell-user.php b/admin/views/_components/table-cell-user.php index 4ba0a76a..e0fecc8a 100644 --- a/admin/views/_components/table-cell-user.php +++ b/admin/views/_components/table-cell-user.php @@ -1,16 +1,29 @@ id : $profile_img); + echo anchor( cdnServe($profile_img), - img(cdnCrop($profile_img, 35, 35)), + (string) (new Picture($mCdnObject, 35, 35, htmlspecialchars($sName, ENT_QUOTES, 'UTF-8'))) + ->source(70, 70, null, 2), 'class="fancybox"' ); @@ -23,10 +36,6 @@ Date: Sat, 3 Oct 2026 10:59:46 +0100 Subject: [PATCH 3/4] feat: serve the topbar avatar through the picture helper Profile images get a 200px source on 2x displays. The avatar is an img so object-fit can cover the circle. --- admin/views/_components/structure/header.php | 30 ++++++++++++++++++-- assets/sass/admin-ui/layouts/_topbar.scss | 9 ++++-- 2 files changed, 34 insertions(+), 5 deletions(-) diff --git a/admin/views/_components/structure/header.php b/admin/views/_components/structure/header.php index 28fa436c..53429461 100644 --- a/admin/views/_components/structure/header.php +++ b/admin/views/_components/structure/header.php @@ -1,6 +1,8 @@