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: Add dividers.

Aman Agrawal061e27471611
diff --git a/static/styles/compose.css b/static/styles/compose.css
index 6c6ed7c076c..2580b4a42b7 100644
--- a/static/styles/compose.css
+++ b/static/styles/compose.css
@@ -468,6 +468,12 @@ input.recipient_box {
padding: 0 4px;
align-self: center;
}
+
+ .divider {
+ color: hsl(0, 0%, 88%);
+ font-size: 20px;
+ margin: 0 3px;
+ }
}
.compose_right_float_container {
diff --git a/static/styles/dark_theme.css b/static/styles/dark_theme.css
index 43bd2f7cf7d..ab89e96c8df 100644
--- a/static/styles/dark_theme.css
+++ b/static/styles/dark_theme.css
@@ -342,6 +342,10 @@ body.night-mode {
border-color: transparent;
}
+ .compose_control_buttons_container .divider {
+ color: hsla(236, 33%, 90%, 0.5);
+ }
+
/* Not that .message_row (below) needs to be more contrast on dark mode */
#compose-content,
.message_list .recipient_row,
diff --git a/static/templates/compose_control_buttons.hbs b/static/templates/compose_control_buttons.hbs
index 0996dcd2a1f..31a51e2f4f4 100644
--- a/static/templates/compose_control_buttons.hbs
+++ b/static/templates/compose_control_buttons.hbs
@@ -9,9 +9,11 @@
<a role="button" class="compose_control_button fa fa-smile-o emoji_map" aria-label="{{t 'Add emoji' }}" tabindex=0 data-tippy-content="{{t 'Add emoji' }}"></a>
<a role="button" class="compose_control_button compose_gif_icon {{#unless giphy_enabled }} hide {{/unless}} zulip-icon zulip-icon-gif" aria-label="{{t 'Add GIF' }}" tabindex=0 data-tippy-content="{{t 'Add GIF' }}"></a>
<a role="button" class="compose_control_button fa fa-clock-o time_pick" aria-label="{{t 'Add global time' }}" tabindex=0 data-tippy-content="{{t 'Add global time<br />Everyone sees global times in their own time zone.' }}" data-tippy-maxWidth="none" data-tippy-allowHtml="true"></a>
+ <div class="divider">|</div>
<a role="button" data-format-type="bold" class="compose_control_button fa fa-bold formatting_button" aria-label="{{t 'Bold' }}" tabindex=0 data-tippy-content="{{t 'Bold' }}"></a>
<a role="button" data-format-type="italic" class="compose_control_button fa fa-italic formatting_button" aria-label="{{t 'Italic' }}" tabindex=0 data-tippy-content="{{t 'Italic' }}"></a>
<a role="button" data-format-type="link" class="compose_control_button fa fa-link formatting_button" aria-label="{{t 'Link' }}" tabindex=0 data-tippy-content="{{t 'Link' }}"></a>
+ <div class="divider">|</div>
<a role="button" class="message-control-link" tabindex=0 data-overlay-trigger="message-formatting">{{t 'Help' }}</a>
<span id="sending-indicator"></span>
</div>