Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
css: Fix min-height of textarea elements.
Sahil Batrafced3d6e2b8c
diff --git a/web/styles/modal.css b/web/styles/modal.cssindex e9639e802e0..ab9659c93e6 100644--- a/web/styles/modal.css+++ b/web/styles/modal.css@@ -503,7 +503,13 @@width: 100%;box-sizing: border-box;resize: vertical;- min-height: 2em;+ /* We set the minimum height of textarea to be enough for two lines+ of text. Since box-sizing is set to "border-box", we also add+ 2 * var(--input-vertical-padding) + 2 * var(--input-border-width). */+ min-height: calc(+ 2em * var(--base-line-height-unitless) + 2 *+ var(--input-vertical-padding) + 2 * var(--input-border-width)+ );}#add-realm-domain-widget {diff --git a/web/styles/scheduled_messages.css b/web/styles/scheduled_messages.cssindex b6fbfad5c2d..95f0e511be1 100644--- a/web/styles/scheduled_messages.css+++ b/web/styles/scheduled_messages.css@@ -26,7 +26,8 @@width: 100%;min-width: 10em;padding: 3px;- min-height: 2em;+ /* We set the minimum height of textarea to be enough for two lines of text. */+ min-height: calc(2em * var(--base-line-height-unitless));background-color: var(--background-color-textarea);diff --git a/web/styles/settings.css b/web/styles/settings.cssindex 55423e635d9..50b7821c3a4 100644--- a/web/styles/settings.css+++ b/web/styles/settings.css@@ -134,7 +134,13 @@ h3,.admin-realm-description,.admin-realm-welcome-message-custom-text {- min-height: 2em;+ /* We set the minimum height of textarea to be enough for two lines+ of text. Since box-sizing is set to "border-box", we also add+ 2 * var(--input-vertical-padding) + 2 * var(--input-border-width). */+ min-height: calc(+ 2em * var(--base-line-height-unitless) + 2 *+ var(--input-vertical-padding) + 2 * var(--input-border-width)+ );width: 500px;max-width: 80%;min-width: 500px;@@ -1569,7 +1575,8 @@ label.preferences-radio-choice-label {.settings-textarea,.modal-textarea {height: 80px;- min-height: 2em;+ /* We set the minimum height of textarea to be enough for two lines of text. */+ min-height: calc(2em * var(--base-line-height-unitless));resize: vertical;}