Skip to content

Commit

Permalink
fix: action list layout issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
FreemanPancake committed Nov 20, 2024
1 parent 6913e0c commit 64affce
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,5 +104,5 @@ ul.cms-pagetree-dropdown-menu-inner li a.inactive {
}

.btn.cms-action-btn.cms-action-burger {
margin-left: 4px !important;
margin-right: 4px !important;
}
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,15 @@

/* add the options to the drop-down */
optionsContainer.appendChild(ul);
$(actions[0]).children('.cms-action-btn:last').after(anchor);
var action_children = $(actions[0]).children();
if (action_children.length > 0 && action_children.last().prop('classList').length < 1) {
$(actions[0]).children().last().before(anchor)
} else {
actions[0].appendChild(anchor)
}
document.body.appendChild(optionsContainer);
/* listen for burger menu clicks */

/* listen for burger menu clicks */
anchor.addEventListener('click', function (ev) {
ev.stopPropagation();
toggleBurgerMenu(anchor, optionsContainer);
Expand Down

0 comments on commit 64affce

Please sign in to comment.