view sat_templates/templates/bulma/chat/reactions.html @ 400:140690a18b63 default tip

call: group call design: Design for group call (which is used for both group call and A/V conferences) has been improved to: - have a working fullscreen button; - have a better display of peer users in grid, with responsive design; - have a nicer design for peer user, and adding avatar/nickname as overlay on the bottom of the video stream; - add a way to (un)pin a peer user, which make is appear on the whole width on top of the grid. rel 448 HG<S-Insert>: changed sat_templates/templates/bulma/call/group_peer.html
author Goffi <goffi@goffi.org>
date Tue, 06 Aug 2024 23:50:17 +0200
parents 38635d393089
children
line wrap: on
line source

<div class="reactions-container is-flex-wrap-wrap">

    {% if chat_type == "group" %}
        {% set local_jid = own_local_jid %}
    {% else %}
        {% set local_jid = own_local_jid|bare_jid %}
    {% endif %}

    {% for emoji, jids in reactions.items() %}
        {% set own_reaction = local_jid in jids %}
        <div
                class="reaction box is-shadowless is-inline-flex is-align-items-center my-1 ml-0 mr-2 px-2 py-1 is-size-6 has-background-light has-border is-not-selectable {{ 'own-reaction' if own_reaction }}"
                data-jids='{{jids|tojson}}'
                >
            <span class="emoji has-text-weight-semibold">{{ emoji }}</span>
            <span class="counter">{{ jids|length }}</span>
        </div>
    {% endfor %}
</div>