Skip to content

Commit 1772d9b

Browse files
committed
fix: WP-894 portal nav dropdown menu alignment
PR TACC/Core-Portal#1073/1066 fixes portal nav dropdown menu alignment. But that breask alignment for CMS, because CMS uses old Bootstrap.
1 parent b7766b9 commit 1772d9b

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

taccsite_cms/templates/nav_portal.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,15 @@
3030
'To not need this, update CMS Bootstrap from 4 to 5.'
3131
)
3232
}
33+
34+
const portalBootstrap5Menu = container.querySelector('.dropdown-menu-end');
35+
if ( portalBootstrap5Menu ) {
36+
portalBootstrap5Menu.classList.remove('dropdown-menu-end');
37+
portalBootstrap5Menu.classList.add('dropdown-menu-right');
38+
console.log(
39+
'Replaced `dropdown-menu-end` with `dropdown-menu-right` in `#s-portal-nav`.',
40+
'To not need this, update CMS Bootstrap from 4 to 5.'
41+
)
42+
}
3343
});
3444
</script>

0 commit comments

Comments
 (0)