css tweaks for mobile mode; reintroduce mobile styles and hacks

This commit is contained in:
Ginger Wong
2020-07-19 15:12:57 -07:00
parent d775924c59
commit fdce8585d5
3 changed files with 29 additions and 17 deletions

View File

@@ -72,6 +72,12 @@ class MessagingInterface {
this.btnSubmitMessage.addEventListener('click', this.handleSubmitChatButton.bind(this));
this.initLocalStates();
if (hasTouchScreen()) {
setVHvar();
window.addEventListener("orientationchange", setVHvar);
this.tagAppContainer.classList.add('touch-screen');
}
}
setWebsocket(socket) {
@@ -225,7 +231,6 @@ class MessagingInterface {
this.formMessageInput.disabled = true;
this.formMessageInput.placeholder = "Chat is offline."
}
// also show "disabled" text/message somewhere.
}
enableChat() {
if (this.formMessageInput) {