Update chat UI(#84)

This commit is contained in:
Phuoc Anh Kha Le 2023-09-25 02:12:06 -05:00 committed by GitHub
parent db37cb4c40
commit b417c08bfe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 124 additions and 89 deletions

View file

@ -5,8 +5,10 @@
<span style="padding-left:0.5em">
<b>{{_('Lobby')}}</b>
</span>
<span class="spacer">
<span class="unread-count" id="unread-count-lobby">{{unread_count_lobby if unread_count_lobby}}</span>
<span class="spacer" style="display:flex;justify-content: flex-end;">
{% if unread_count_lobby and unread_count_lobby > 0 %}
<span class="unread-count" id="unread-count-lobby">{{unread_count_lobby}}</span>
{% endif %}
</span>
</li>
{% for section in status_sections %}
@ -37,9 +39,11 @@
</span>
{% endif %}
</div>
<span class="unread-count" id="unread-count-{{user.user.id}}">
{{user.unread_count if user.unread_count}}
</span>
{% if user.unread_count and user.unread_count > 0 %}
<span class="unread-count" id="unread-count-{{user.user.id}}">
{{user.unread_count}}
</span>
{% endif %}
</li>
{% endfor %}
</ul>