ui tweaks for mobile:

- fix url chooser cut-off in mobile (#14)
- sidebar toggle goes directly to full view (no sidebar) in mobile mode
This commit is contained in:
Ilya Kreymer
2020-09-09 09:41:47 -07:00
parent 851ce9bf90
commit d0cc1acb71
4 changed files with 21 additions and 10 deletions
+4 -7
View File
@@ -803,16 +803,13 @@ class Coll extends LitElement
onShowPages(event) {
event.preventDefault();
// show sidebar if table or greater
// show sidebar for tablet or wider, or hide sidebar
if (this.showSidebar || (document.documentElement.clientWidth >= 769)) {
this.showSidebar = !this.showSidebar;
//this.updateTabData({showSidebar: !this.showSidebar});
} else {
// otherwise, just go to full pages view
//this.showSidebar = false;
// if (this.tabData && this.tabData.view === "replay") {
// this.updateTabData({view: "pages"});
// }
// otherwise, just go to full pages view
this.showSidebar = false;
this.updateTabData({url: "", ts: ""});
}
}