From 1b68e9e478c97018e3da5dde013e06c02893466d Mon Sep 17 00:00:00 2001 From: Jonathan Miller Date: Tue, 2 Jun 2026 09:19:31 -0500 Subject: [PATCH] fix: cpanel module renders full-width card instead of quickicon column [skip ci] Uses CSS column-span:all with :has() selector to force the module's parent .module-wrapper to span across all card-columns, rendering as a full-width card at the top of the dashboard. Authored-by: Moko Consulting Co-Authored-By: Claude Opus 4.6 (1M context) --- src/packages/mod_mokowaas_cpanel/tmpl/default.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/packages/mod_mokowaas_cpanel/tmpl/default.php b/src/packages/mod_mokowaas_cpanel/tmpl/default.php index 47de43e1..54839711 100644 --- a/src/packages/mod_mokowaas_cpanel/tmpl/default.php +++ b/src/packages/mod_mokowaas_cpanel/tmpl/default.php @@ -12,6 +12,19 @@ use Joomla\CMS\Language\Text; use Joomla\CMS\Router\Route; use Joomla\CMS\Session\Session; +// Force the module card to span full width in the card-columns layout +$doc = Joomla\CMS\Factory::getApplication()->getDocument(); +$doc->addStyleDeclaration(' + .card-columns .module-wrapper:has(.mod-mokowaas-cpanel) { + column-span: all; + -webkit-column-span: all; + break-inside: avoid; + } + .card-columns .module-wrapper:has(.mod-mokowaas-cpanel) .card { + max-width: 100%; + } +'); + $siteInfo = $siteInfo ?? (object) []; $plugins = $plugins ?? []; $healthOk = $healthOk ?? true;