diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2020-01-09 15:31:15 +0300 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2020-01-09 15:43:08 +0300 |
commit | d594bb84b623e8668e3b30813c6ae61dda86919e (patch) | |
tree | 2c0cf0d8f26de64b66c3f37d796da822d83a9b47 /src | |
parent | 22a8bfdfec779a0ba11d9d74f85de6d4116a9087 (diff) |
Adjust chat tab to the new vue-scroll directive
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 <danxuliu@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/FilesSidebarTabApp.vue | 4 | ||||
-rw-r--r-- | 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; } </style> 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, |