Implement smart Bootstrap loading and fix drawer functionality

Co-authored-by: jmiller-moko <230051081+jmiller-moko@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-01-30 05:54:06 +00:00
parent a2a26d504e
commit d97233eea9
2 changed files with 12 additions and 0 deletions

View File

@@ -87,6 +87,12 @@ try {
// Scripts
$wa->useScript('template.js');
// Smart Bootstrap component loading - only load what's needed
if ($this->countModules('drawer-left', true) || $this->countModules('drawer-right', true)) {
// Load Bootstrap Offcanvas component for drawers
HTMLHelper::_('bootstrap.offcanvas');
}
// Meta
$this->setMetaData('viewport', 'width=device-width, initial-scale=1');