From 7268e29b5993cc344adbbc1844c852ecd35e2bc0 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 12 Sep 2020 12:48:47 +0900 Subject: [PATCH] wip --- package.json | 6 +-- src/client/components/deck/widgets-column.vue | 5 +- src/client/components/image-viewer.vue | 52 +++++++++---------- src/client/components/media-image.vue | 5 +- src/client/components/modal.vue | 6 ++- src/client/components/post-form-attaches.vue | 5 +- src/client/default.vue | 2 +- .../pages/page-editor/page-editor.blocks.vue | 6 +-- src/client/pages/page-editor/page-editor.vue | 6 +-- yarn.lock | 32 ++++++------ 10 files changed, 61 insertions(+), 64 deletions(-) diff --git a/package.json b/package.json index 44b5479632..6a3c70adb5 100644 --- a/package.json +++ b/package.json @@ -247,9 +247,10 @@ "vue-color": "2.7.1", "vue-content-loading": "1.6.0", "vue-cropperjs": "4.1.0", - "vue-i18n": "9.0.0-alpha.13", + "vue-draggable-next": "1.0.5", + "vue-i18n": "9.0.0-alpha.17", "vue-json-pretty": "1.6.7", - "vue-loader": "16.0.0-beta.5", + "vue-loader": "16.0.0-beta.7", "vue-marquee-text-component": "1.1.1", "vue-meta": "2.4.0", "vue-prism-component": "1.2.0", @@ -258,7 +259,6 @@ "vue-style-loader": "4.1.2", "vue-svg-inline-loader-corejs3": "1.5.0", "vue-template-compiler": "2.6.12", - "vuedraggable": "2.24.1", "vuex": "4.0.0-beta.4", "vuex-persistedstate": "3.1.0", "web-push": "3.4.4", diff --git a/src/client/components/deck/widgets-column.vue b/src/client/components/deck/widgets-column.vue index 2d47edc916..4d0d3bc2b1 100644 --- a/src/client/components/deck/widgets-column.vue +++ b/src/client/components/deck/widgets-column.vue @@ -29,8 +29,7 @@ diff --git a/src/client/components/media-image.vue b/src/client/components/media-image.vue index 25469fb831..e8cbd51e78 100644 --- a/src/client/components/media-image.vue +++ b/src/client/components/media-image.vue @@ -72,12 +72,9 @@ export default defineComponent({ if (this.$store.state.device.imageNewTab) { window.open(this.image.url, '_blank'); } else { - const viewer = os.modal(ImageViewer, { + os.modal(ImageViewer, { image: this.image }); - this.$once('hook:beforeDestroy', () => { - viewer.close(); - }); } } } diff --git a/src/client/components/modal.vue b/src/client/components/modal.vue index 7c016edc9e..ad7567cdde 100644 --- a/src/client/components/modal.vue +++ b/src/client/components/modal.vue @@ -166,8 +166,10 @@ export default defineComponent({ max-height: calc(100% - 16px); overflow: auto; display: flex; - justify-content: center; - align-items: center; + + > * { + margin: auto; + } } > .content.popup { diff --git a/src/client/components/post-form-attaches.vue b/src/client/components/post-form-attaches.vue index 16e29dfe9b..c57714545f 100644 --- a/src/client/components/post-form-attaches.vue +++ b/src/client/components/post-form-attaches.vue @@ -13,8 +13,7 @@