From 23905a0d9fc5092a4aee945f328b320e20110205 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sat, 6 Apr 2024 07:01:17 +0200 Subject: [PATCH] ideal chaat height --- files/assets/css/chat.css | 9 ++++++++- files/templates/util/macros.html | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/files/assets/css/chat.css b/files/assets/css/chat.css index 042807934..ad2b19030 100644 --- a/files/assets/css/chat.css +++ b/files/assets/css/chat.css @@ -4,6 +4,10 @@ background-color: transparent !important; } +.chat-window-1 { + max-height: calc(100vh - 208px); +} + #online, #members { max-height: calc(100vh - 200px); overflow-y: auto; @@ -65,7 +69,10 @@ blockquote { font-size: 12px !important; } #chat-window { - max-height: 62vh; + max-height: calc(100vh - 250px); + } + .chat-window-1 { + max-height: calc(100vh - 208px); } } diff --git a/files/templates/util/macros.html b/files/templates/util/macros.html index 8f78b4480..017920a36 100644 --- a/files/templates/util/macros.html +++ b/files/templates/util/macros.html @@ -341,7 +341,7 @@ {% macro chat_window(vlink)%}
-
+
{% set messages_list = messages.items()|list %} {% for id, m in messages_list %} {% set same = loop.index > 1 and m.user_id == messages_list[loop.index-2][1].user_id %}