Skip to content
Snippets Groups Projects
Commit ce0b551c authored by Shpuld Shpludson's avatar Shpuld Shpludson
Browse files

some ugly hack to prevent the jump in form height when you input first character

parent 5bc7ecdb
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -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'
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment