diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2021-04-20 23:22:59 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-20 23:22:59 +0900 |
| commit | 11349561d697b11df7bcaa3d57ed3498eb4dd3c5 (patch) | |
| tree | 8dfe96ed7c9b695872b7d416383920355621d3c3 /src/client/components/poll-editor.vue | |
| parent | Tweak style (diff) | |
| download | misskey-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-editor.vue')
| -rw-r--r-- | src/client/components/poll-editor.vue | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/client/components/poll-editor.vue b/src/client/components/poll-editor.vue index 3503d3df71..0ade2c3ba0 100644 --- a/src/client/components/poll-editor.vue +++ b/src/client/components/poll-editor.vue @@ -1,7 +1,7 @@ <template> <div class="zmdxowus"> <p class="caution" v-if="choices.length < 2"> - <Fa :icon="faExclamationTriangle"/>{{ $ts._poll.noOnlyOneChoice }} + <i class="fas fa-exclamation-triangle"></i>{{ $ts._poll.noOnlyOneChoice }} </p> <ul ref="choices"> <li v-for="(choice, i) in choices" :key="i"> @@ -9,7 +9,7 @@ <span>{{ $t('_poll.choiceN', { n: i + 1 }) }}</span> </MkInput> <button @click="remove(i)" class="_button"> - <Fa :icon="faTimes"/> + <i class="fas fa-times"></i> </button> </li> </ul> @@ -50,7 +50,6 @@ <script lang="ts"> import { defineComponent } from 'vue'; -import { faExclamationTriangle, faTimes } from '@fortawesome/free-solid-svg-icons'; import { addTime } from '../../prelude/time'; import { formatDateTimeString } from '@/misc/format-time-string'; import MkInput from './ui/input.vue'; @@ -84,7 +83,6 @@ export default defineComponent({ atTime: '00:00', after: 0, unit: 'second', - faExclamationTriangle, faTimes }; }, @@ -190,7 +188,7 @@ export default defineComponent({ font-size: 0.8em; color: #f00; - > [data-icon] { + > i { margin-right: 4px; } } |