Resize textarea when navigating input history

Plus reset textarea size after sending long text.