summaryrefslogtreecommitdiff
path: root/src/client/pages/page-editor/page-editor.container.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/pages/page-editor/page-editor.container.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/pages/page-editor/page-editor.container.vue')
-rw-r--r--src/client/pages/page-editor/page-editor.container.vue13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/client/pages/page-editor/page-editor.container.vue b/src/client/pages/page-editor/page-editor.container.vue
index 46e2dca157..afd261fac7 100644
--- a/src/client/pages/page-editor/page-editor.container.vue
+++ b/src/client/pages/page-editor/page-editor.container.vue
@@ -5,14 +5,14 @@
<div class="buttons">
<slot name="func"></slot>
<button v-if="removable" @click="remove()" class="_button">
- <Fa :icon="faTrashAlt"/>
+ <i class="fas fa-trash-alt"></i>
</button>
<button v-if="draggable" class="drag-handle _button">
- <Fa :icon="faBars"/>
+ <i class="fas fa-bars"></i>
</button>
<button @click="toggleContent(!showBody)" class="_button">
- <template v-if="showBody"><Fa :icon="faAngleUp"/></template>
- <template v-else><Fa :icon="faAngleDown"/></template>
+ <template v-if="showBody"><i class="fas fa-angle-up"></i></template>
+ <template v-else><i class="fas fa-angle-down"></i></template>
</button>
</div>
</header>
@@ -26,8 +26,6 @@
<script lang="ts">
import { defineComponent } from 'vue';
-import { faBars, faAngleUp, faAngleDown } from '@fortawesome/free-solid-svg-icons';
-import { faTrashAlt } from '@fortawesome/free-regular-svg-icons';
export default defineComponent({
props: {
@@ -56,7 +54,6 @@ export default defineComponent({
data() {
return {
showBody: this.expanded,
- faTrashAlt, faBars, faAngleUp, faAngleDown
};
},
methods: {
@@ -105,7 +102,7 @@ export default defineComponent({
font-weight: bold;
box-shadow: 0 1px rgba(#000, 0.07);
- > [data-icon] {
+ > i {
margin-right: 6px;
}