ideal chaat height

master
Aevann 2024-04-06 07:01:17 +02:00
parent ee325f8556
commit 23905a0d9f
2 changed files with 9 additions and 2 deletions

View File

@ -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);
}
}

View File

@ -341,7 +341,7 @@
{% macro chat_window(vlink)%}
<div id="shrink">
<div id="chat-window" class="container p-0">
<div id="chat-window" class="chat-window-{{chat.id}} container p-0">
{% 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 %}