From 318c62c8526f2513f9760dba9ccc48d8c27c7645 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Tue, 26 Apr 2022 00:07:51 +0300 Subject: reduce height of post form by default --- src/components/post_status_form/post_status_form.vue | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/components') diff --git a/src/components/post_status_form/post_status_form.vue b/src/components/post_status_form/post_status_form.vue index ebeead07..a967d3a3 100644 --- a/src/components/post_status_form/post_status_form.vue +++ b/src/components/post_status_form/post_status_form.vue @@ -507,12 +507,14 @@ } .form-post-body { - resize: none; + box-sizing: content-box; overflow: hidden; transition: min-height 200ms 100ms; - padding-bottom: 1.75em; - min-height: 2em; - box-sizing: content-box; + padding-bottom: calc(var(--padding) + 1.2em); + // Because we changed box-sizing original height values are no longer correct + height: 1.2em; + min-height: 1.2em; + resize: none; &.scrollable-form { overflow-y: auto; -- cgit v1.2.3-70-g09d2