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) <noreply@anthropic.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user