From e5eca8a554446dfdfbe6049d14737979074cf18d Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Tue, 12 Apr 2022 17:03:29 +0300 Subject: [PATCH 1/2] reduce chats jumpiness --- src/components/chat/chat.scss | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/chat/chat.scss b/src/components/chat/chat.scss index 7b4dd37fe..430319d95 100644 --- a/src/components/chat/chat.scss +++ b/src/components/chat/chat.scss @@ -13,12 +13,13 @@ } .chat-view-body { + box-sizing: border-box; background-color: var(--chatBg, $fallback--bg); display: flex; flex-direction: column; width: 100%; overflow: visible; - min-height: 100%; + min-height: calc(100vh - var(--navbar-height)); margin: 0 0 0 0; border-radius: 10px 10px 0 0; border-radius: var(--panelRadius, 10px) var(--panelRadius, 10px) 0 0; From 08ad2923a58b08f8522b90938d9a330993904ea7 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Tue, 12 Apr 2022 17:17:52 +0300 Subject: [PATCH 2/2] 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(-) diff --git a/src/components/chat/chat.scss b/src/components/chat/chat.scss index 430319d95..8b745e866 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 d909bed93..31eecbc05 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" > - - +