Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
compose: Remove gaps between formatting buttons, and make all same size.
N-Shar-ma30933c514553
diff --git a/web/styles/compose.css b/web/styles/compose.cssindex ce678c346e5..9937a7a052d 100644--- a/web/styles/compose.css+++ b/web/styles/compose.css@@ -969,7 +969,6 @@ textarea.new_message_textarea,.compose-control-buttons-container {margin-right: auto;display: flex;- gap: 4px;align-items: center;/* We use the selector in this manner to maintain specificity. */@@ -978,15 +977,20 @@ textarea.new_message_textarea,}.compose_control_button {- padding: 5px;+ height: 27px;+ width: 27px;+ display: flex;+ align-items: center;+ justify-content: center;opacity: 0.7;color: inherit;text-decoration: none;font-size: 17px;- text-align: center;+ border-radius: 4px;&:hover {opacity: 1;+ background-color: hsl(0deg 0% 0% / 10%);}}diff --git a/web/styles/dark_theme.css b/web/styles/dark_theme.cssindex 63ef5f240c2..bbebe4aeceb 100644--- a/web/styles/dark_theme.css+++ b/web/styles/dark_theme.css@@ -585,6 +585,10 @@color: hsl(236deg 33% 90% / 50%);}+ .compose_control_button:hover {+ background-color: hsl(0deg 0% 100% / 10%);+ }+#compose-content {background-color: hsl(228deg 11% 17%);border-color: hsl(0deg 0% 0% / 60%);diff --git a/web/templates/compose_control_buttons.hbs b/web/templates/compose_control_buttons.hbsindex 094e27a3e55..07f21fd1357 100644--- a/web/templates/compose_control_buttons.hbs+++ b/web/templates/compose_control_buttons.hbs@@ -5,8 +5,12 @@<a role="button" class="compose_control_button compose_upload_file fa fa-paperclip notdisplayed" aria-label="{{t 'Upload files' }}" tabindex=0></a></div>{{/if}}- <a role="button" class="markdown_preview compose_control_button fa fa-eye" aria-label="{{t 'Preview' }}" tabindex=0 data-tippy-content="{{t 'Preview' }}"></a>- <a role="button" class="undo_markdown_preview compose_control_button fa fa-edit" aria-label="{{t 'Write' }}" tabindex=0 style="display:none;" data-tippy-content="{{t 'Write' }}"></a>+ <div class="compose_control_button_container" data-tippy-content="{{t 'Preview' }}">+ <a role="button" class="markdown_preview compose_control_button fa fa-eye" aria-label="{{t 'Preview' }}" tabindex=0></a>+ </div>+ <div class="compose_control_button_container" data-tippy-content="{{t 'Write' }}">+ <a role="button" class="undo_markdown_preview compose_control_button fa fa-edit" aria-label="{{t 'Write' }}" tabindex=0 style="display:none;"></a>+ </div><div class="compose_control_button_container preview_mode_disabled" data-tippy-content="{{t 'Add voice call' }}"><a role="button" class="compose_control_button fa fa-phone audio_link" aria-label="{{t 'Add voice call' }}" tabindex=0></a></div>