Skip to content

Commit

Permalink
compose: Change the max-height for compose textarea.
Browse files Browse the repository at this point in the history
This commit change the max-height for new_message_textarea to
calc(50vh - 50px) in which 50vh will ensure at most half of the viewport
is taken by the compose box at max and the 50px is for the top header
that we have. This way, there will always be ample amount of space even in
small devices so that they can scroll.

Part of zulip#17660
Fixes zulip#16038
  • Loading branch information
Signior-X committed Apr 14, 2021
1 parent 9f57961 commit 08053ee
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion static/styles/compose.css
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,12 @@ textarea.new_message_textarea {
width: calc(100% - 12px);
padding: 5px;
height: 1.5em;
max-height: 22em;

/* 50vh will ensure at most half of the viewport is taken by the
compose box at max and the 50px is for the top header that we have.
Thus, always have an ample amount of space to scroll
Issue #16038 */
max-height: calc(50vh - 50px);
margin-bottom: 0;
resize: vertical !important;
margin-top: 5px;
Expand Down

0 comments on commit 08053ee

Please sign in to comment.