From 1b9d7cf437421ce745ea3712cb37da635ed36b61 Mon Sep 17 00:00:00 2001 From: Dispatch <45262335+DispatchCommit@users.noreply.github.com> Date: Wed, 23 Oct 2019 21:32:58 -0700 Subject: [PATCH] Improve Chat UX (#50) * Create ChatSettings component, overhaul chat input UI * Simplify chat component * Create ChatInput component isolate textbox input for better performance * Remove unused components from chat index * Make chat input clearable * Fix null message when input is cleared * Switch autoscroll function * Begin work on ChatMessages wrapper * Add counter back to input * Use ChatMessages container * Convert ChatMessage to functional component * Code Cleanup Remove old chat code and clean up files * Improve viewerlist scrolling * Load chat settings async * Remove vuetify components from functional component * Reduce chat message line height * Improve chat message typography * Revert line height * ViewerList scroll improvement, restore settings divider --- components/Chat/ChatInput.vue | 149 ++++++++++ components/Chat/ChatMessage.vue | 87 +++--- components/Chat/ChatMessages.vue | 113 +++++++ components/Chat/ChatSettings.vue | 217 ++++++++++++++ components/Chat/ViewerList.vue | 2 +- components/Chat/index.vue | 462 +++++++---------------------- components/Notifications/index.vue | 2 +- components/User.vue | 2 +- components/UserList.vue | 2 +- package.json | 2 +- store/chat.js | 32 ++ 11 files changed, 668 insertions(+), 402 deletions(-) create mode 100644 components/Chat/ChatInput.vue create mode 100644 components/Chat/ChatMessages.vue create mode 100644 components/Chat/ChatSettings.vue diff --git a/components/Chat/ChatInput.vue b/components/Chat/ChatInput.vue new file mode 100644 index 00000000..3687bda9 --- /dev/null +++ b/components/Chat/ChatInput.vue @@ -0,0 +1,149 @@ + + + diff --git a/components/Chat/ChatMessage.vue b/components/Chat/ChatMessage.vue index e0b80788..8e699d4e 100644 --- a/components/Chat/ChatMessage.vue +++ b/components/Chat/ChatMessage.vue @@ -1,46 +1,44 @@ -