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:
+4
-7
@@ -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: ""});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user