ui: fix reaction display on mobile

This commit is contained in:
undefined committed 2022-02-09 16:46:10 +08:00
1 parent e2259b7495
commit 83d4f9fd5f
4 files changed
+20 -27

No files matched your search

@@ -107,10 +107,10 @@
</div>
<div class="typo" data-emoji-enabled data-drid="{{ doc.docId }}" data-raw-url="{{ url('discussion_reply_raw', did=doc.parentId, drid=doc._id) }}">
{{ doc['content']|markdown|safe }}
<div class="reactions row">
<div class="reactions list">
{% for key in Object.keys(doc.react or {}) %}
{% if doc.react[key] %}
<div class="reaction{% if reactions[doc.docId][key] %} active{% endif %}"><p>{{ key }} {{ doc.react[key] }}</p></div>
<div class="reaction{% if reactions[doc.docId][key] %} active{% endif %}"><span class="emoji">{{ key }}</span> {{ doc.react[key] }}</div>
{% endif %}
{% endfor %}
</div>