From 1f5f612163bd1c359212c2e6832806f0dd606977 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Sun, 25 Apr 2021 12:46:13 +0300 Subject: remove Vue.component, just export an object. Seems to be working --- src/components/chat_title/chat_title.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/components/chat_title') diff --git a/src/components/chat_title/chat_title.js b/src/components/chat_title/chat_title.js index edfbe7a4..1da04d4b 100644 --- a/src/components/chat_title/chat_title.js +++ b/src/components/chat_title/chat_title.js @@ -1,8 +1,7 @@ -import Vue from 'vue' import generateProfileLink from 'src/services/user_profile_link_generator/user_profile_link_generator' import UserAvatar from '../user_avatar/user_avatar.vue' -export default Vue.component('chat-title', { +export default { name: 'ChatTitle', components: { UserAvatar @@ -23,4 +22,4 @@ export default Vue.component('chat-title', { return generateProfileLink(user.id, user.screen_name) } } -}) +} -- cgit v1.2.3-70-g09d2 From b62653c202d35ebcc5cd56d87c049405d6d500cd Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Thu, 17 Mar 2022 08:37:01 +0200 Subject: fix chat user titles --- src/components/chat_title/chat_title.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/components/chat_title') diff --git a/src/components/chat_title/chat_title.js b/src/components/chat_title/chat_title.js index 1da04d4b..f6e299ad 100644 --- a/src/components/chat_title/chat_title.js +++ b/src/components/chat_title/chat_title.js @@ -1,10 +1,12 @@ import generateProfileLink from 'src/services/user_profile_link_generator/user_profile_link_generator' import UserAvatar from '../user_avatar/user_avatar.vue' +import RichContent from 'src/components/rich_content/rich_content.jsx' export default { name: 'ChatTitle', components: { - UserAvatar + UserAvatar, + RichContent }, props: [ 'user', 'withAvatar' -- cgit v1.2.3-70-g09d2 From 835feea1633fa1a5f3ea6f28bc3760a345e52cf1 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Tue, 5 Apr 2022 17:44:30 +0300 Subject: fix random error that sometimes occurs --- src/components/chat_title/chat_title.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/components/chat_title') diff --git a/src/components/chat_title/chat_title.vue b/src/components/chat_title/chat_title.vue index a92028e8..06ad129d 100644 --- a/src/components/chat_title/chat_title.vue +++ b/src/components/chat_title/chat_title.vue @@ -15,7 +15,7 @@ -- cgit v1.2.3-70-g09d2 From 08ad2923a58b08f8522b90938d9a330993904ea7 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Tue, 12 Apr 2022 17:17:52 +0300 Subject: fix chats button alignment --- src/components/chat/chat.scss | 9 ++++----- src/components/chat/chat.vue | 6 +++--- src/components/chat_title/chat_title.vue | 16 +++++++++------- 3 files changed, 16 insertions(+), 15 deletions(-) (limited to 'src/components/chat_title') diff --git a/src/components/chat/chat.scss b/src/components/chat/chat.scss index 430319d9..8b745e86 100644 --- a/src/components/chat/chat.scss +++ b/src/components/chat/chat.scss @@ -47,7 +47,6 @@ } .chat-view-heading { - align-items: center; justify-content: space-between; display: flex; z-index: 2; @@ -56,11 +55,11 @@ } .go-back-button { - cursor: pointer; - width: 28px; text-align: center; - padding: 0.6em; - margin: -0.6em 0.6em -0.6em -0.6em; + padding: 0 0.7em; + line-height: 100%; + height: 100%; + align-self: stretch; } .jump-to-bottom-button { diff --git a/src/components/chat/chat.vue b/src/components/chat/chat.vue index d909bed9..31eecbc0 100644 --- a/src/components/chat/chat.vue +++ b/src/components/chat/chat.vue @@ -9,15 +9,15 @@ ref="header" class="panel-heading -sticky chat-view-heading mobile-hidden" > - - +
Date: Wed, 20 Apr 2022 20:16:41 +0300 Subject: fix chat --- src/components/chat/chat.scss | 10 +++------- src/components/chat_title/chat_title.vue | 1 + 2 files changed, 4 insertions(+), 7 deletions(-) (limited to 'src/components/chat_title') diff --git a/src/components/chat/chat.scss b/src/components/chat/chat.scss index 8b745e86..63fd2a1f 100644 --- a/src/components/chat/chat.scss +++ b/src/components/chat/chat.scss @@ -47,19 +47,15 @@ } .chat-view-heading { - justify-content: space-between; - display: flex; - z-index: 2; - position: sticky; - overflow: hidden; + grid-template-columns: auto 1fr; } .go-back-button { text-align: center; - padding: 0 0.7em; line-height: 100%; height: 100%; - align-self: stretch; + align-self: start; + width: var(--__panel-heading-height-inner); } .jump-to-bottom-button { diff --git a/src/components/chat_title/chat_title.vue b/src/components/chat_title/chat_title.vue index 99a7a64e..e62c52b2 100644 --- a/src/components/chat_title/chat_title.vue +++ b/src/components/chat_title/chat_title.vue @@ -46,6 +46,7 @@ .avatar-container { align-self: center; + line-height: 1; } .titlebar-avatar { -- cgit v1.2.3-70-g09d2 From 895eda3714e9977d931a5e4a0f215c304df021af Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Wed, 20 Apr 2022 20:19:22 +0300 Subject: fix some chat errors/warnings that sometimes happen --- src/components/chat_title/chat_title.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/components/chat_title') diff --git a/src/components/chat_title/chat_title.vue b/src/components/chat_title/chat_title.vue index a92028e8..f4706caf 100644 --- a/src/components/chat_title/chat_title.vue +++ b/src/components/chat_title/chat_title.vue @@ -14,10 +14,11 @@ />
-- cgit v1.2.3-70-g09d2