Skip to content

Commit

Permalink
fix(mobile-menu): limit css to .mind-elixir
Browse files Browse the repository at this point in the history
  • Loading branch information
SSShooter committed Mar 16, 2023
1 parent 69e74d5 commit 6b6ab79
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const options = {
},
],
},
mobileMenu: true,
toolBar: true,
nodeMenu: true,
keypress: true,
Expand Down
2 changes: 1 addition & 1 deletion src/plugin/mobileMenu.less
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
mmenu {
.mind-elixir .mobile-menu {
position: absolute;
left: 20px;
bottom: 70px;
Expand Down
1 change: 1 addition & 0 deletions src/plugin/mobileMenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export default function (mind, option?) {
}
}
const menuContainer = document.createElement('mmenu')
menuContainer.className = 'mobile-menu'
menuContainer.appendChild(add_child)
menuContainer.appendChild(add_sibling)
menuContainer.appendChild(remove_child)
Expand Down

0 comments on commit 6b6ab79

Please sign in to comment.