From d594bb84b623e8668e3b30813c6ae61dda86919e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Calvi=C3=B1o=20S=C3=A1nchez?= Date: Thu, 9 Jan 2020 13:31:15 +0100 Subject: [PATCH] Adjust chat tab to the new vue-scroll directive MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Due to the changes in the message list it is no longer needed to reset the height of the chat view. Moreover, the chat view now needs to have a height of 100% (which was the reset value before) in order to be properly shown in Chromium. Signed-off-by: Daniel Calviño Sánchez --- src/FilesSidebarTabApp.vue | 4 ---- src/mainChatTab.js | 2 ++ 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/FilesSidebarTabApp.vue b/src/FilesSidebarTabApp.vue index b5b6d25c3..f0f8d843a 100644 --- a/src/FilesSidebarTabApp.vue +++ b/src/FilesSidebarTabApp.vue @@ -320,10 +320,6 @@ export default { } .chatView { - /* The chat view shares its parent with the call button, so the default - * "height: 100%" needs to be unset. */ - height: unset; - overflow: hidden; } diff --git a/src/mainChatTab.js b/src/mainChatTab.js index 955ebcd6d..bb523704b 100644 --- a/src/mainChatTab.js +++ b/src/mainChatTab.js @@ -36,6 +36,7 @@ import { getRequestToken } from '@nextcloud/auth' // Directives import contenteditableDirective from 'vue-contenteditable-directive' import { translate, translatePlural } from '@nextcloud/l10n' +import vuescroll from 'vue-scroll' // CSP config for webpack dynamic chunk loading // eslint-disable-next-line @@ -55,6 +56,7 @@ Vue.prototype.OCA = OCA Vue.use(contenteditableDirective) Vue.use(Vuex) +Vue.use(vuescroll, { debounce: 600 }) const newTab = () => new Vue({ store,