forked from rDrama/rDrama
1
0
Fork 0

improve chat

master
Aevann 2023-02-07 03:06:07 +02:00
parent 30f1d9157d
commit 13dafeb8a2
2 changed files with 5 additions and 4 deletions

View File

@ -91,7 +91,8 @@ p {
float: right; float: right;
color: var(--black); color: var(--black);
font-size: 12px; font-size: 12px;
margin-top: 4px; margin-top: auto;
margin-bottom: auto;
} }
lite-youtube { lite-youtube {
@ -129,7 +130,7 @@ lite-youtube {
} }
.chat-message { .chat-message {
max-height: 30vh; max-height: 50vh;
overflow: auto; overflow: auto;
max-width: 80%; max-width: 80%;
} }

View File

@ -29,7 +29,7 @@
{% set mentioned = m and vlink in m['text_html'] or (quote_exists and messages[m['quotes']]['user_id'] == v.id) %} {% set mentioned = m and vlink in m['text_html'] or (quote_exists and messages[m['quotes']]['user_id'] == v.id) %}
<div class="chat-line {% if mentioned %}chat-mention{% endif %}" {% if m %}id="{{id}}"{% endif %}> <div class="chat-line {% if mentioned %}chat-mention{% endif %}" {% if m %}id="{{id}}"{% endif %}>
<div class="d-flex align-items-center"> <div class="d-flex align-items-center">
<div class="text-muted chat-line-content"> <div class="text-muted chat-line-content row">
<div class="{% if not (m and m['quotes']) %}d-none{% endif %} quotes" style="font-size:12px"> <div class="{% if not (m and m['quotes']) %}d-none{% endif %} quotes" style="font-size:12px">
<a class="QuotedMessageLink" {% if m and m['quotes'] %}href="#{{m['quotes']}}"{% endif %}> <a class="QuotedMessageLink" {% if m and m['quotes'] %}href="#{{m['quotes']}}"{% endif %}>
<i class="fas fa-reply"></i> <i class="fas fa-reply"></i>
@ -46,7 +46,7 @@
</a> </a>
</div> </div>
<span class="chat-message text-black text-break"> <span class="chat-message text-black text-break col">
{% if m %} {% if m %}
{% if v.slurreplacer %} {% if v.slurreplacer %}
{{m['text_censored'] | safe}} {{m['text_censored'] | safe}}