From 21b6e23e986b5f43de89927d675f310055d83d97 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 1 Nov 2020 15:04:46 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=A1=E3=83=A2=E3=83=AA=E3=83=AA=E3=83=BC?= =?UTF-8?q?=E3=82=AF=E3=81=AE=E4=B8=80=E5=9B=A0=E3=81=AB=E3=81=AA=E3=81=A3?= =?UTF-8?q?=E3=81=A6=E3=81=9D=E3=81=86=E3=81=A0=E3=81=A3=E3=81=9F=E3=81=AE?= =?UTF-8?q?=E3=81=A7ref=E3=82=92=E6=B8=A1=E3=81=99=E3=81=AE=E3=82=92?= =?UTF-8?q?=E5=89=8A=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/client/components/media-list.vue | 9 +-------- src/client/components/note.vue | 7 ++----- 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/src/client/components/media-list.vue b/src/client/components/media-list.vue index ce266acd20..36fbb4bd06 100644 --- a/src/client/components/media-list.vue +++ b/src/client/components/media-list.vue @@ -32,8 +32,6 @@ export default defineComponent({ raw: { default: false }, - // specify the parent element - parentElement: {} }, data() { return { @@ -66,7 +64,7 @@ export default defineComponent({ if (this.$refs.gridOuter) { let height = 287; - const parent = this.parentElement || this.$parent.$el; + const parent = this.$parent.$el; if (this.$refs.gridOuter.clientHeight) { height = this.$refs.gridOuter.clientHeight; @@ -81,11 +79,6 @@ export default defineComponent({ }); } }, - watch: { - parentElement() { - this.size(); - } - } }); diff --git a/src/client/components/note.vue b/src/client/components/note.vue index 4e31aec12e..609098f82c 100644 --- a/src/client/components/note.vue +++ b/src/client/components/note.vue @@ -41,7 +41,7 @@
-
+

@@ -54,7 +54,7 @@ RN:

- +
@@ -176,7 +176,6 @@ export default defineComponent({ showContent: false, isDeleted: false, muted: false, - noteBody: this.$refs.noteBody, faEdit, faBolt, faTimes, faBullhorn, faPlus, faMinus, faRetweet, faReply, faReplyAll, faEllipsisH, faHome, faUnlock, faEnvelope, faThumbtack, faBan, faBiohazard, faPlug, faSatelliteDish }; }, @@ -309,8 +308,6 @@ export default defineComponent({ if (this.$store.getters.isSignedIn) { this.connection.on('_connected_', this.onStreamConnected); } - - this.noteBody = this.$refs.noteBody; }, beforeUnmount() {