diff --git a/src/components/CallView/Grid/Grid.vue b/src/components/CallView/Grid/Grid.vue
index f593f510d82..e61c6b48084 100644
--- a/src/components/CallView/Grid/Grid.vue
+++ b/src/components/CallView/Grid/Grid.vue
@@ -25,7 +25,8 @@
-
+
-
+
-
+
{{ t('spreed','Create a new group conversation') }}
diff --git a/src/components/MessagesList/MessagesGroup/Message/MessagePart/FilePreview.vue b/src/components/MessagesList/MessagesGroup/Message/MessagePart/FilePreview.vue
index 3696adda75d..2d4f5844bd1 100644
--- a/src/components/MessagesList/MessagesGroup/Message/MessagePart/FilePreview.vue
+++ b/src/components/MessagesList/MessagesGroup/Message/MessagePart/FilePreview.vue
@@ -44,7 +44,7 @@
tabindex="1"
:aria-label="removeAriaLabel"
class="remove-file primary">
-
+
diff --git a/src/components/MessagesList/MessagesList.vue b/src/components/MessagesList/MessagesList.vue
index 7405d0d59af..38498ddf122 100644
--- a/src/components/MessagesList/MessagesList.vue
+++ b/src/components/MessagesList/MessagesList.vue
@@ -51,6 +51,16 @@ get the messagesList array and loop through the list to generate the messages.
type="messages"
:count="15" />
+
+
+
@@ -65,12 +75,14 @@ import isInLobby from '../../mixins/isInLobby'
import debounce from 'debounce'
import { EventBus } from '../../services/EventBus'
import LoadingPlaceholder from '../LoadingPlaceholder'
+import ChevronDown from 'vue-material-design-icons/ChevronDown'
export default {
name: 'MessagesList',
components: {
LoadingPlaceholder,
MessagesGroup,
+ ChevronDown,
},
mixins: [
@@ -200,6 +212,14 @@ export default {
chatIdentifier() {
return this.token + ':' + this.isParticipant + ':' + this.isInLobby
},
+
+ scrollToBottomAriaLabel() {
+ return t('spreed', 'Scroll to bottom')
+ },
+
+ scroller() {
+ return document.querySelector('.scroller')
+ },
},
watch: {
@@ -503,17 +523,16 @@ export default {
debounceHandleScroll: debounce(function() {
this.handleScroll()
- }, 600),
+ }, 200),
/**
* When the div is scrolled, this method checks if it's been scrolled to the top
* or to the bottom of the list bottom.
*/
async handleScroll() {
- const scroller = document.querySelector('.scroller')
- const scrollHeight = scroller.scrollHeight
- const scrollTop = scroller.scrollTop
+ const scrollHeight = this.scroller.scrollHeight
+ const scrollTop = this.scroller.scrollTop
const scrollOffset = scrollHeight - scrollTop
- const elementHeight = scroller.clientHeight
+ const elementHeight = this.scroller.clientHeight
const tolerance = 10
if (scrollOffset < elementHeight + tolerance && scrollOffset > elementHeight - tolerance) {
this.isScrolledToBottom = true
@@ -549,8 +568,9 @@ export default {
*/
scrollToBottom() {
this.$nextTick(function() {
- document.querySelector('.scroller').scrollTop = document.querySelector('.scroller').scrollHeight
+ this.scroller.scrollTop = this.scroller.scrollHeight
})
+ this.isScrolledToBottom = true
},
/**
@@ -581,9 +601,12 @@ export default {
diff --git a/src/components/NewMessageForm/NewMessageForm.vue b/src/components/NewMessageForm/NewMessageForm.vue
index 44709a76d59..ca4ba11bfcf 100644
--- a/src/components/NewMessageForm/NewMessageForm.vue
+++ b/src/components/NewMessageForm/NewMessageForm.vue
@@ -66,7 +66,8 @@
:aria-label="t('spreed', 'Add emoji')"
:aria-haspopup="true">
+ :size="20"
+ decorative />
diff --git a/src/components/UploadEditor.vue b/src/components/UploadEditor.vue
index 2f3bfc34045..2997bca7a96 100644
--- a/src/components/UploadEditor.vue
+++ b/src/components/UploadEditor.vue
@@ -45,7 +45,10 @@