aboutsummaryrefslogtreecommitdiff
path: root/src/components/chat_new
diff options
context:
space:
mode:
authoreugenijm <eugenijm@protonmail.com>2020-06-21 17:13:29 +0300
committereugenijm <eugenijm@protonmail.com>2020-07-08 15:21:31 +0300
commitf05f832bff58034d78de9478ae2dbb06284dea75 (patch)
treee41f122ada5957618ea96e2b3206977ba8438fd8 /src/components/chat_new
parentaa2cf51c05ebdf411d74af5debbbc8fa4d3cf457 (diff)
Address feedback
Use more specific css rules for the emoji dimensions in the chat list status preview. Use more round em value for chat list item height. Add global html overflow and height for smoother chat navigation in the desktop Safari. Use offsetHeight instad of a computed style when setting the window height on resize. Remove margin-bottom from the last message to avoid occasional layout shift in the desktop Safari Use break-word to prevent chat message text overflow Resize and scroll the textarea when inserting a new line on ctrl+enter Remove fade transition on route change Ensure proper border radius at the bottom of the chat, remove unused border-radius Prevent the chat header "jumping" on the avatar load.
Diffstat (limited to 'src/components/chat_new')
-rw-r--r--src/components/chat_new/chat_new.js5
-rw-r--r--src/components/chat_new/chat_new.scss2
2 files changed, 3 insertions, 4 deletions
diff --git a/src/components/chat_new/chat_new.js b/src/components/chat_new/chat_new.js
index 0da681f7..d023efc0 100644
--- a/src/components/chat_new/chat_new.js
+++ b/src/components/chat_new/chat_new.js
@@ -1,4 +1,3 @@
-import { throttle } from 'lodash'
import { mapState, mapGetters } from 'vuex'
import BasicUserCard from '../basic_user_card/basic_user_card.vue'
import UserAvatar from '../user_avatar/user_avatar.vue'
@@ -54,7 +53,7 @@ const chatNew = {
removeUser (userId) {
this.selectedUserIds = this.selectedUserIds.filter(id => id !== userId)
},
- search: throttle(function (query) {
+ search (query) {
if (!query) {
this.loading = false
return
@@ -67,7 +66,7 @@ const chatNew = {
this.loading = false
this.userIds = data.accounts.map(a => a.id)
})
- })
+ }
}
}
diff --git a/src/components/chat_new/chat_new.scss b/src/components/chat_new/chat_new.scss
index 39216677..11305444 100644
--- a/src/components/chat_new/chat_new.scss
+++ b/src/components/chat_new/chat_new.scss
@@ -15,7 +15,7 @@
}
.member-list {
- padding-bottom: 0.67rem;
+ padding-bottom: 0.7rem;
}
.basic-user-card:hover {