made description field auto-expand

This commit is contained in:
bill bittner 2017-10-24 08:52:07 -07:00
parent 420e811434
commit 4b38da6a3b

View file

@ -36,6 +36,14 @@
</div>
<script type="text/javascript">
const textarea = document.getElementById('publish-description');
const limit = 200;
textarea.oninput = () => {
textarea.style.height = '';
textarea.style.height = Math.min(textarea.scrollHeight, limit) + 'px';
}
</script>