Mercurial > libervia-templates
diff sat_templates/templates/bulma/chat/reactions.html @ 385:941e4006ab6e
bulma (message): reactions + fixes:
- add "reaction" button
- fix attachments display
- add reaction templates
- add reactions to messages
- fix "info" messages display
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 22 Nov 2023 15:22:11 +0100 |
parents | |
children | 38635d393089 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sat_templates/templates/bulma/chat/reactions.html Wed Nov 22 15:22:11 2023 +0100 @@ -0,0 +1,11 @@ +<div class="reactions-container is-flex-wrap-wrap"> + {% for emoji, jids in reactions.items() %} + <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" + data-jids='{{jids|tojson}}' + > + <span class="emoji has-text-weight-semibold">{{ emoji }}</span> + <span class="counter">{{ jids|length }}</span> + </div> + {% endfor %} +</div>