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.

compose: Better align widget icons for long channel names.

Karl Stolleye713bcb1db73
diff --git a/web/styles/app_components.css b/web/styles/app_components.css
index 3d8b9449c15..0e255622110 100644
--- a/web/styles/app_components.css
+++ b/web/styles/app_components.css
@@ -989,7 +989,7 @@ input.settings_text_input {
/* We do not need to pull up lock icons in dropdowns
so we reset their margin-top to the original value
for a dropdown's .zulip-icon */
- margin-top: 2px !important;
+ margin-top: 0 !important;
}
/* This includes css needed to display messages in an overlay. */
diff --git a/web/styles/zulip.css b/web/styles/zulip.css
index 2d12292c457..aedfc20a649 100644
--- a/web/styles/zulip.css
+++ b/web/styles/zulip.css
@@ -2171,10 +2171,11 @@ body:not(.spectator-view) {
&.compose_select_recipient-dropdown-list-container {
.dropdown-list .dropdown-list-item-common-styles {
- /* We align items to center for the sake of the
- compose_select_recipient dropdown, which has
- icons not present in other dropdowns. */
- align-items: center;
+ /* We align items to the baseline for the sake of
+ the compose_select_recipient dropdown, which has
+ icons not present in other dropdowns. We also want
+ to hold the icon to the first baseline. */
+ align-items: first baseline;
}
}
@@ -2194,9 +2195,13 @@ body:not(.spectator-view) {
regardless of the height. */
width: 0.93em;
padding-right: 5px;
- /* Override the [data-tippy-root]
- style in `tooltips.css`. */
- top: 0;
+ /* Override the [data-tippy-root] style in
+ `tooltips.css`.
+ Because we are manually holding icon
+ alignment to the first/only line of a
+ channel, we make this adjustment here,
+ calculated by 4.5px / (0.93 * 20px) */
+ top: 0.2419em;
}
.dropdown-list-delete {