aboutsummaryrefslogtreecommitdiff
path: root/src/components/poll/poll.vue
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2020-06-14 13:16:08 +0200
committerlain <lain@soykaf.club>2020-06-14 13:16:08 +0200
commitd41c9a717ca3f52b0a67bbb2b0ab8b0c898bba4b (patch)
treeb41fea476224a49a748ae300719040efab473a5e /src/components/poll/poll.vue
parent7de56a8063e6c8ef1c0f3bbe87428f5887c38485 (diff)
Polls: Construct an html field during normalization.
Diffstat (limited to 'src/components/poll/poll.vue')
-rw-r--r--src/components/poll/poll.vue8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/components/poll/poll.vue b/src/components/poll/poll.vue
index 56e91cca..28f90006 100644
--- a/src/components/poll/poll.vue
+++ b/src/components/poll/poll.vue
@@ -17,7 +17,7 @@
<span class="result-percentage">
{{ percentageForOption(option.votes_count) }}%
</span>
- <span>{{ option.title }}</span>
+ <span v-html="option.title_html"></span>
</div>
<div
class="result-fill"
@@ -75,6 +75,12 @@
@import '../../_variables.scss';
.poll {
+ img.emoji {
+ vertical-align: middle;
+ object-fit: contain;
+ width: 32px;
+ height: 32px;
+ }
.votes {
display: flex;
flex-direction: column;