From 7f4d26ca547c8a614eb01178bae6f0c26d12bf07 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 30 Aug 2017 10:57:40 +0300 Subject: www: textarea autosize and padding --- juick-www/src/main/static/scripts.js | 1 + juick-www/src/main/static/style.css | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'juick-www/src') diff --git a/juick-www/src/main/static/scripts.js b/juick-www/src/main/static/scripts.js index a2f25d07..4001dbb6 100644 --- a/juick-www/src/main/static/scripts.js +++ b/juick-www/src/main/static/scripts.js @@ -810,6 +810,7 @@ ready(function () { }); }); ta.style.minHeight = '70px'; + autosize(ta); ta.focus(); newMessageBlock.querySelector('a').addEventListener('click', function (e) { attachMessagePhoto(e.target); diff --git a/juick-www/src/main/static/style.css b/juick-www/src/main/static/style.css index ab6f7500..02de92d9 100644 --- a/juick-www/src/main/static/style.css +++ b/juick-www/src/main/static/style.css @@ -166,9 +166,10 @@ body > header p { } #newmessage textarea { border: 1px solid #CCC; + box-sizing: border-box; margin: 0 0 5px 0; min-height: 14pt; - resize: vertical; + padding: 4px; width: 100%; } #newmessage input { -- cgit v1.2.3