diff --git a/src/client/components/media-list.vue b/src/client/components/media-list.vue index 2c5df4eca..c757d8091 100644 --- a/src/client/components/media-list.vue +++ b/src/client/components/media-list.vue @@ -34,9 +34,7 @@ export default Vue.extend({ default: false }, // specify the parent element - parentElement: { - type: Object - } + parentElement: {} }, data() { return { @@ -69,7 +67,7 @@ export default Vue.extend({ if (this.$refs.gridOuter) { let height = 287; - const parent = this.$props.parentElement || this.$parent.$el; + const parent = this.parentElement || this.$parent.$el; if (this.$refs.gridOuter.clientHeight) { height = this.$refs.gridOuter.clientHeight; @@ -83,6 +81,11 @@ export default Vue.extend({ } }); } + }, + watch: { + parentElement() { + this.size(); + } } }); diff --git a/src/client/components/note.vue b/src/client/components/note.vue index a39520fb4..34871ac85 100644 --- a/src/client/components/note.vue +++ b/src/client/components/note.vue @@ -33,7 +33,7 @@
-
+

@@ -46,7 +46,7 @@ RN:

- +
@@ -142,6 +142,7 @@ export default Vue.extend({ replies: [], showContent: false, hideThisNote: false, + noteBody: this.$refs.noteBody, faEdit, faBolt, faTimes, faBullhorn, faPlus, faMinus, faRetweet, faReply, faReplyAll, faEllipsisH, faHome, faUnlock, faEnvelope, faThumbtack, faBan }; }, @@ -254,6 +255,8 @@ export default Vue.extend({ if (this.$store.getters.isSignedIn) { this.connection.on('_connected_', this.onStreamConnected); } + + this.noteBody = this.$refs.noteBody }, beforeDestroy() {