aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/components/post_status_form/post_status_form.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/components/post_status_form/post_status_form.js b/src/components/post_status_form/post_status_form.js
index 3348445f..6c95873c 100644
--- a/src/components/post_status_form/post_status_form.js
+++ b/src/components/post_status_form/post_status_form.js
@@ -240,7 +240,10 @@ const PostStatusForm = {
resize (e) {
const target = e.target || e
target.style.height = 'auto'
- target.style.height = `${target.scrollHeight - 10}px`
+ const heightPx = target.scrollHeight - 10
+ if (heightPx > 54) {
+ target.style.height = `${target.scrollHeight - 10}px`
+ }
if (target.value === '') {
target.style.height = '16px'
}