summaryrefslogtreecommitdiff
path: root/src/client/components/poll.vue
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2021-04-20 23:22:59 +0900
committerGitHub <noreply@github.com>2021-04-20 23:22:59 +0900
commit11349561d697b11df7bcaa3d57ed3498eb4dd3c5 (patch)
tree8dfe96ed7c9b695872b7d416383920355621d3c3 /src/client/components/poll.vue
parentTweak style (diff)
downloadmisskey-11349561d697b11df7bcaa3d57ed3498eb4dd3c5.tar.gz
misskey-11349561d697b11df7bcaa3d57ed3498eb4dd3c5.tar.bz2
misskey-11349561d697b11df7bcaa3d57ed3498eb4dd3c5.zip
Use FontAwesome as web font instead of vue component (#7469)
* wip * wip * wip * wip * wip * wip * wip * wip * wip * Update yarn.lock * wip * wip
Diffstat (limited to 'src/client/components/poll.vue')
-rw-r--r--src/client/components/poll.vue6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/client/components/poll.vue b/src/client/components/poll.vue
index 6cf6a8e918..463ddab721 100644
--- a/src/client/components/poll.vue
+++ b/src/client/components/poll.vue
@@ -4,7 +4,7 @@
<li v-for="(choice, i) in poll.choices" :key="i" @click="vote(i)" :class="{ voted: choice.voted }">
<div class="backdrop" :style="{ 'width': `${showResult ? (choice.votes / total * 100) : 0}%` }"></div>
<span>
- <template v-if="choice.isVoted"><Fa :icon="faCheck"/></template>
+ <template v-if="choice.isVoted"><i class="fas fa-check"></i></template>
<Mfm :text="choice.text" :plain="true" :custom-emojis="note.emojis"/>
<span class="votes" v-if="showResult">({{ $t('_poll.votesCount', { n: choice.votes }) }})</span>
</span>
@@ -23,7 +23,6 @@
<script lang="ts">
import { defineComponent } from 'vue';
-import { faCheck } from '@fortawesome/free-solid-svg-icons';
import { sum } from '../../prelude/array';
import * as os from '@client/os';
@@ -38,7 +37,6 @@ export default defineComponent({
return {
remaining: -1,
showResult: false,
- faCheck
};
},
computed: {
@@ -135,7 +133,7 @@ export default defineComponent({
> span {
position: relative;
- > [data-icon] {
+ > i {
margin-right: 4px;
}