componentize user info

This commit is contained in:
Ginger Wong
2020-06-28 17:15:53 -07:00
parent 6c7af9ffae
commit b228d3a4e5
5 changed files with 62 additions and 43 deletions

View File

@@ -78,10 +78,13 @@ class Messaging {
if (hasTouchScreen()) {
this.scrollableMessagesContainer = document.body;
this.tagAppContainer.classList.add("touch-screen");
window.app.layout = "touch";
window.onorientationchange = this.handleOrientationChange.bind(this);
this.handleOrientationChange();
} else {
this.tagAppContainer.classList.add("desktop");
window.app.layout = "desktop";
}
}