diff --git a/client/components/cards/minicard.styl b/client/components/cards/minicard.styl index 1c27effff..47d160f40 100644 --- a/client/components/cards/minicard.styl +++ b/client/components/cards/minicard.styl @@ -133,5 +133,6 @@ margin: 0 padding: 0 max-height: 162px - min-height: 54px + min-height: 36px + margin-bottom: 20px overflow-y: auto diff --git a/client/components/lists/listBody.js b/client/components/lists/listBody.js index 1fc84c828..c3a85614d 100644 --- a/client/components/lists/listBody.js +++ b/client/components/lists/listBody.js @@ -57,6 +57,7 @@ BlazeComponent.extendComponent({ // We keep the form opened, empty it, and scroll to it. textarea.val('').focus(); + autosize.update(textarea); if (position === 'bottom') { this.scrollToBottom(); } @@ -180,7 +181,11 @@ BlazeComponent.extendComponent({ onRendered() { const editor = this; - this.$('textarea').escapeableTextComplete([ + const $textarea = this.$('textarea'); + + autosize($textarea); + + $textarea.escapeableTextComplete([ // User mentions { match: /\B@(\w*)$/,