Skip to content

Commit

Permalink
Fix subsubnav position issue (#15970)
Browse files Browse the repository at this point in the history
* Fix subsubnav position issue

* grunt build

Co-authored-by: Jason Coward <jason@opengeek.com>
  • Loading branch information
Jako and opengeek authored Jan 17, 2022
1 parent 4e5157c commit 9b0a93d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
8 changes: 7 additions & 1 deletion _build/templates/default/sass/_navbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -295,9 +295,15 @@
list-style: none;
position: absolute;
left: 295px;
bottom: 0;
top: 0;
z-index: 24;
}
&.modx-subnav-usernav {
.modx-subsubnav {
top: initial;
bottom: 0;
}
}

&-arrow {
right: 100%;
Expand Down
2 changes: 1 addition & 1 deletion manager/controllers/default/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ public function buildMenu($name, $placeholder)
$menuTpl .= '</li>'."\n";

if (!empty($menu['children'])) {
$this->submenus .= '<ul id="limenu-'.$menu['id'].'-submenu"class="modx-subnav">';
$this->submenus .= '<ul id="limenu-' . $menu['id'] . '-submenu" class="modx-subnav modx-subnav-' . $menu['parent'] . '">';
$this->processSubMenus($this->submenus, $menu['children']);
$this->submenus .= '<div class="modx-subnav-arrow"></div></ul>';
}
Expand Down
2 changes: 1 addition & 1 deletion manager/templates/default/css/index-min.css

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion manager/templates/default/css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -23039,9 +23039,13 @@ ul.x-tab-strip-bottom .x-tab-left {
list-style: none;
position: absolute;
left: 295px;
bottom: 0;
top: 0;
z-index: 24;
}
#modx-footer .modx-subnav.modx-subnav-usernav .modx-subsubnav {
top: initial;
bottom: 0;
}
#modx-footer .modx-subnav-arrow {
right: 100%;
border: 12px solid transparent;
Expand Down

0 comments on commit 9b0a93d

Please sign in to comment.