fix: use Atum 'top' position for full-width cpanel module [skip ci]
Atum template has a 'top' position that renders full-width above the component output inside the content section. Removed the column-span CSS hack since top position is naturally full-width. Authored-by: Moko Consulting Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -12,18 +12,6 @@ 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 ?? [];
|
||||
|
||||
+1
-1
@@ -473,7 +473,7 @@ class Pkg_MokowaasInstallerScript
|
||||
'note' => '',
|
||||
'content' => '',
|
||||
'ordering' => 0,
|
||||
'position' => 'icon',
|
||||
'position' => 'top',
|
||||
'checked_out' => null,
|
||||
'checked_out_time' => null,
|
||||
'publish_up' => null,
|
||||
|
||||
Reference in New Issue
Block a user