From a5795d381c8f0241ea3d291bd917266282e50123 Mon Sep 17 00:00:00 2001 From: Jonathan Miller Date: Tue, 2 Jun 2026 09:24:00 -0500 Subject: [PATCH] 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) --- src/packages/mod_mokowaas_cpanel/tmpl/default.php | 12 ------------ src/script.php | 2 +- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/src/packages/mod_mokowaas_cpanel/tmpl/default.php b/src/packages/mod_mokowaas_cpanel/tmpl/default.php index 54839711..33b00280 100644 --- a/src/packages/mod_mokowaas_cpanel/tmpl/default.php +++ b/src/packages/mod_mokowaas_cpanel/tmpl/default.php @@ -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 ?? []; diff --git a/src/script.php b/src/script.php index a10d6004..04239377 100644 --- a/src/script.php +++ b/src/script.php @@ -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,