From 8f42dd6c28c38e97496894226adc93d032ec9e0b Mon Sep 17 00:00:00 2001 From: John Livingston Date: Fri, 7 Jan 2022 02:15:39 +0100 Subject: [PATCH] Also hide separators when readonly=noscroll. --- CHANGELOG.md | 2 +- conversejs/custom/shared/styles/livechat.scss | 11 +++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a6c0168c..1c207559 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ ### Features -* Builtin Prosody, Share chat url: ability to show/hide the scrollbar in readonly mode. +* Builtin Prosody, Share chat url: ability to show/hide the scrollbar in readonly mode. Note: new messages and new day separators will also be hidden if scollbars are. * Builtin Prosody: display Peertube users avatars. * Builtin Prosody: display random avatars for anonymous users. diff --git a/conversejs/custom/shared/styles/livechat.scss b/conversejs/custom/shared/styles/livechat.scss index 52c45fbf..064cfb5e 100644 --- a/conversejs/custom/shared/styles/livechat.scss +++ b/conversejs/custom/shared/styles/livechat.scss @@ -26,6 +26,13 @@ body.livechat-readonly #conversejs { } } -body.livechat-readonly.livechat-noscroll converse-chat-content { - overflow-y: hidden !important; +body.livechat-readonly.livechat-noscroll { + converse-chat-content { + overflow-y: hidden !important; + } + + .message.separator { + // also hide separators (new day, new message) + display: none; + } }