mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 21:13:36 +00:00
tooltips: Make tooltip for saved snippets consistent with other buttons.
This commit is contained in:
@@ -9,7 +9,7 @@ message you're composing.
|
||||
|
||||
{!start-composing.md!}
|
||||
|
||||
1. Click the **Insert saved snippet** (<i class="zulip-icon
|
||||
1. Click the **Add saved snippet** (<i class="zulip-icon
|
||||
zulip-icon-message-square-text"></i>) icon at the bottom of the compose box to
|
||||
open the saved snippets menu.
|
||||
|
||||
@@ -33,7 +33,7 @@ message you're composing.
|
||||
compose box. You can [preview](/help/preview-your-message-before-sending) what
|
||||
it will look like once sent.
|
||||
|
||||
1. Click the **Insert saved snippet** (<i class="zulip-icon
|
||||
1. Click the **Add saved snippet** (<i class="zulip-icon
|
||||
zulip-icon-message-square-text"></i>) icon at the bottom of the compose box to
|
||||
open the saved snippets menu.
|
||||
|
||||
@@ -60,7 +60,7 @@ message you're composing.
|
||||
|
||||
{!start-composing.md!}
|
||||
|
||||
1. Click the **Insert saved snippet** (<i class="zulip-icon
|
||||
1. Click the **Add saved snippet** (<i class="zulip-icon
|
||||
zulip-icon-message-square-text"></i>) icon at the bottom of the compose box to
|
||||
open the saved snippets menu.
|
||||
|
||||
|
||||
@@ -85,7 +85,7 @@ function item_click_callback(
|
||||
}
|
||||
|
||||
dropdown.hide();
|
||||
// Get target textarea where the "Insert saved snippet" button is clicked.
|
||||
// Get target textarea where the "Add saved snippet" button is clicked.
|
||||
const $target_element = $(dropdown.reference);
|
||||
let $target_textarea: JQuery<HTMLTextAreaElement>;
|
||||
let edit_message_id: string | undefined;
|
||||
|
||||
@@ -32,8 +32,8 @@
|
||||
<div class="compose_control_button_container {{#unless giphy_enabled }}hide{{/unless}} preview_mode_disabled" data-tippy-content="{{t 'Add GIF' }}">
|
||||
<a role="button" class="compose_control_button compose_gif_icon zulip-icon zulip-icon-gif" aria-label="{{t 'Add GIF' }}" tabindex=0></a>
|
||||
</div>
|
||||
<div class="compose_control_button_container preview_mode_disabled" data-tooltip-template-id="insert-saved-snippet-tooltip">
|
||||
<a role="button" class="saved_snippets_widget compose_control_button zulip-icon zulip-icon-message-square-text" aria-label="{{t 'Insert saved snippet' }}" tabindex=0></a>
|
||||
<div class="compose_control_button_container preview_mode_disabled" data-tooltip-template-id="add-saved-snippet-tooltip">
|
||||
<a role="button" class="saved_snippets_widget compose_control_button zulip-icon zulip-icon-message-square-text" aria-label="{{t 'Add saved snippet' }}" tabindex=0></a>
|
||||
</div>
|
||||
<div class="divider"></div>
|
||||
<div class="compose-control-buttons-container preview_mode_disabled">
|
||||
|
||||
@@ -68,8 +68,8 @@
|
||||
<span class="tooltip-inner-content italic">{{t "A poll must be an entire message." }}</span>
|
||||
</div>
|
||||
</template>
|
||||
<template id="insert-saved-snippet-tooltip">
|
||||
{{t "Insert saved snippet" }}
|
||||
<template id="add-saved-snippet-tooltip">
|
||||
{{t "Add saved snippet" }}
|
||||
{{tooltip_hotkey_hints "Ctrl" "'"}}
|
||||
</template>
|
||||
<template id="link-tooltip">
|
||||
|
||||
Reference in New Issue
Block a user