summaryrefslogtreecommitdiff
path: root/src/client/app/desktop/views/components
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2019-05-21 03:45:07 +0900
committersyuilo <syuilotan@yahoo.co.jp>2019-05-21 03:45:07 +0900
commit3cc2049fb3985bf141bc74d410764bbb802caa50 (patch)
treeca04cf16747f0b58b345ce79518f11e0aed7b04d /src/client/app/desktop/views/components
parentFix (diff)
downloadmisskey-3cc2049fb3985bf141bc74d410764bbb802caa50.tar.gz
misskey-3cc2049fb3985bf141bc74d410764bbb802caa50.tar.bz2
misskey-3cc2049fb3985bf141bc74d410764bbb802caa50.zip
Reduce initial bundle size
Diffstat (limited to 'src/client/app/desktop/views/components')
-rw-r--r--src/client/app/desktop/views/components/post-form.vue7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/client/app/desktop/views/components/post-form.vue b/src/client/app/desktop/views/components/post-form.vue
index 0307ff305e..e0e2db1708 100644
--- a/src/client/app/desktop/views/components/post-form.vue
+++ b/src/client/app/desktop/views/components/post-form.vue
@@ -28,7 +28,7 @@
<fa :icon="['far', 'laugh']"/>
</button>
<x-post-form-attaches class="files" :class="{ with: poll }" :files="files"/>
- <mk-poll-editor v-if="poll" ref="poll" @destroyed="poll = false" @updated="onPollUpdate()"/>
+ <x-poll-editor class="poll-editor" v-if="poll" ref="poll" @destroyed="poll = false" @updated="onPollUpdate()"/>
</div>
</div>
<mk-uploader ref="uploader" @uploaded="attachMedia" @change="onChangeUploadings"/>
@@ -72,7 +72,8 @@ export default Vue.extend({
components: {
MkVisibilityChooser,
- XPostFormAttaches
+ XPostFormAttaches,
+ XPollEditor: () => import('../../../common/views/components/poll-editor.vue').then(m => m.default)
},
props: {
@@ -617,7 +618,7 @@ export default Vue.extend({
border-bottom solid 1px var(--primaryAlpha01) !important
border-radius 0
- > .mk-poll-editor
+ > .poll-editor
background var(--desktopPostFormTextareaBg)
border solid 1px var(--primaryAlpha01)
border-top none