Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
compose_box: Maintain consistent dropdown height.
Karl Stolley42e0d72b674d
diff --git a/web/styles/compose.css b/web/styles/compose.cssindex 14c3ff25867..db3483b5e48 100644--- a/web/styles/compose.css+++ b/web/styles/compose.css@@ -117,11 +117,20 @@}}- .fa-angle-right {- font-size: 0.9em;- -webkit-text-stroke: 0.05em;- align-self: center;- margin: 0 5px;+ .topic-marker-container {+ /* Ensure the marker ( < ) stays centered vertically+ with the dropdown, even when adjacent stacking pills+ in, e.g., a group DM. */+ display: flex;+ align-items: center;+ height: var(--compose-recipient-box-min-height);++ .fa-angle-right {+ font-size: 0.9em;+ -webkit-text-stroke: 0.05em;+ align-self: center;+ margin: 0 5px;+ }}& a.narrow_to_compose_recipients {@@ -233,12 +242,14 @@#compose_top {display: flex;justify-content: space-between;+ align-items: flex-start;padding-bottom: 5px;}#compose_top_right {display: flex;align-items: center;+ height: var(--compose-recipient-box-min-height);& button {background: transparent;@@ -789,6 +800,7 @@ a.compose_control_button.hide {#compose_recipient_selection_dropdown {display: flex;justify-content: flex-start;+ height: var(--compose-recipient-box-min-height);.stream_header_colorblock {margin: 0;diff --git a/web/templates/compose.hbs b/web/templates/compose.hbsindex 3623f30f329..1c688791436 100644--- a/web/templates/compose.hbs+++ b/web/templates/compose.hbs@@ -55,7 +55,9 @@<button type="button" class="close fa fa-times" id='compose_close' data-tooltip-template-id="compose_close_tooltip_template"></button></div><div id="compose-recipient" class="order-1">- <a role="button" class="narrow_to_compose_recipients zulip-icon zulip-icon-arrow-left-circle order-1" data-tooltip-template-id="narrow_to_compose_recipients_tooltip"></a>+ <div class="topic-marker-container order-1">+ <a role="button" class="narrow_to_compose_recipients zulip-icon zulip-icon-arrow-left-circle" data-tooltip-template-id="narrow_to_compose_recipients_tooltip"></a>+ </div><div id="compose_recipient_selection_dropdown" class="new-style" tabindex="0"><div class="stream_header_colorblock"></div><button id="compose_select_recipient_widget" class="dropdown-widget-button" type="button">@@ -65,7 +67,9 @@<i class="fa fa-chevron-down"></i></button></div>- <i class="fa fa-angle-right" aria-hidden="true"></i>+ <div class="topic-marker-container">+ <i class="fa fa-angle-right" aria-hidden="true"></i>+ </div><input type="text" class="recipient_box" name="stream_message_recipient_topic" id="stream_message_recipient_topic" maxlength="{{ max_topic_length }}" value="" placeholder="{{t 'Topic' }}" autocomplete="off" tabindex="0" aria-label="{{t 'Topic' }}" /><div id="compose-direct-recipient" class="pill-container" data-before="{{t 'You and' }}"><div class="input" contenteditable="true" id="private_message_recipient" data-no-recipients-text="{{t 'Add one or more users' }}" data-some-recipients-text="{{t 'Add another user...' }}"></div>