Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

inputs: Fix input icons' vertical alignment for multi-line inputs.

Sayam Samal39e467c0dd32
diff --git a/web/styles/inputs.css b/web/styles/inputs.css
index ce502b18398..34d28df0410 100644
--- a/web/styles/inputs.css
+++ b/web/styles/inputs.css
@@ -15,7 +15,6 @@
--input-button-ending-offset
)
[input-element-end];
- align-items: center;
.input-element {
grid-area: input-element;
@@ -100,11 +99,19 @@
want to display it over the input element in the UI. */
z-index: 1;
pointer-events: none;
+ /* This margin is required to align the icon with the
+ first line of a multi-line input, where we cannot
+ use `align-items: center`. */
+ margin: 0.375em 0; /* 6px at 16px/1em */
}
.input-button {
grid-area: input-button;
padding: 0.25em; /* 4px at 16px/1em */
+ /* This margin is required to align the icon with the
+ first line of a multi-line input, where we cannot
+ use `align-items: center`. */
+ margin: 0.125em 0; /* 2px at 16px/1em */
}
.filter-input {