master
Aevann1 2022-03-24 04:10:38 +02:00
parent 590ac869a3
commit 03ca1b46b6
1 changed files with 4 additions and 2 deletions

View File

@ -38,7 +38,9 @@
<div id="chat-window">
<div id="chat-text" class="fullchat">
{% for m in messages %}
<div class="chat-line my-2">
{% set text_html = m['text_html'] %}
{% set link = '<a href="/id/' + v.id|string %}
<div class="chat-line my-2 {% if link in text_html %}chat-mention{% endif %}">
<div class="d-flex align-items-center">
<span class="rounded mb-auto d-none d-md-block chat-profile">
<img class="desktop-avatar rounded-circle w-100" src="{{m['avatar']}}">
@ -48,7 +50,7 @@
<img src="{{m['avatar']}}" class="mobile-avatar profile-pic-30 mr-1 d-inline-block d-md-none" data-toggle="tooltip" data-placement="right">
<a class="font-weight-bold text-black userlink" style="color:#{{m['namecolor']}}" target="_blank" href="/@{{m['username']}}">{{m['username']}}</a>
<div style="overflow:hidden">
<span class="chat-message text-black text-break">{{m['text_html'] | safe}}</span>
<span class="chat-message text-black text-break">{{text_html | safe}}</span>
{% set text=m['text'] %}
<button class="btn d-inline-block pt-0"><i onclick="quote('{{text}}')" class="fas fa-reply" aria-hidden="true"></i></button>
</div>