diff --git a/src/appmain.js b/src/appmain.js index bedcb98..cf73a89 100644 --- a/src/appmain.js +++ b/src/appmain.js @@ -112,12 +112,18 @@ class App extends LitElement return html``; } return html` - ${!this.embed ? html` + ${!this.embed || this.embed === "full" ? html` ` : ''} @@ -262,8 +271,15 @@ class App extends LitElement } } - onNavMenu() { + onNavMenu(event) { + event.stopPropagation(); this.navMenuShown = !this.navMenuShown; + + if (this.navMenuShown) { + document.addEventListener("click", () => { + this.navMenuShown = false; + }, {once: true}); + } } initRoute() { diff --git a/src/coll.js b/src/coll.js index 33d188f..c60fd36 100644 --- a/src/coll.js +++ b/src/coll.js @@ -250,7 +250,7 @@ class Coll extends LitElement } else if (this.collInfo) { return html`