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_control_buttons: Change class name for GIF icon.

Aman Agrawal4a91d5ffdbc7
diff --git a/static/js/click_handlers.js b/static/js/click_handlers.js
index e5c9d99f9d1..eaa5079c510 100644
--- a/static/js/click_handlers.js
+++ b/static/js/click_handlers.js
@@ -671,7 +671,7 @@ export function initialize() {
function handle_compose_click(e) {
// Emoji clicks should be handled by their own click handler in emoji_picker.js
- if ($(e.target).is(".emoji_map, img.emoji, .drag, .compose_giphy_logo")) {
+ if ($(e.target).is(".emoji_map, img.emoji, .drag, .compose_gif_icon")) {
return;
}
diff --git a/static/js/giphy.js b/static/js/giphy.js
index 326a8911433..59a58c74205 100644
--- a/static/js/giphy.js
+++ b/static/js/giphy.js
@@ -200,7 +200,7 @@ function get_popover_placement() {
export function initialize() {
$("body").on("keydown", ".giphy-gif", ui_util.convert_enter_to_click);
- $("body").on("keydown", ".compose_giphy_logo", ui_util.convert_enter_to_click);
+ $("body").on("keydown", ".compose_gif_icon", ui_util.convert_enter_to_click);
$("body").on("click", "#giphy_search_clear", (e) => {
e.stopPropagation();
@@ -208,7 +208,7 @@ export function initialize() {
update_grid_with_search_term();
});
- $("body").on("click", ".compose_giphy_logo", (e) => {
+ $("body").on("click", ".compose_gif_icon", (e) => {
e.preventDefault();
e.stopPropagation();
diff --git a/static/styles/compose.css b/static/styles/compose.css
index ca1ba0ca14a..9627720dd0b 100644
--- a/static/styles/compose.css
+++ b/static/styles/compose.css
@@ -399,7 +399,7 @@ input.recipient_box {
display: inline-block;
}
-.compose_giphy_link .compose_giphy_logo {
+.compose_giphy_link .compose_gif_icon {
position: relative;
font-size: 23px;
top: -4px;
diff --git a/static/styles/zulip.css b/static/styles/zulip.css
index da1bc713898..dc0642ddcb5 100644
--- a/static/styles/zulip.css
+++ b/static/styles/zulip.css
@@ -2518,7 +2518,7 @@ div.topic_edit_spinner .loading_indicator_spinner {
top: -1px;
}
- .compose_giphy_logo {
+ .compose_gif_icon {
top: 6px;
}
}
diff --git a/static/templates/compose_control_buttons.hbs b/static/templates/compose_control_buttons.hbs
index c431798a474..42ef1dd2dbe 100644
--- a/static/templates/compose_control_buttons.hbs
+++ b/static/templates/compose_control_buttons.hbs
@@ -7,7 +7,7 @@
<a role="button" class="compose_control_button fa fa-video-camera video_link" aria-label="{{t 'Add video call' }}" tabindex=0 title="{{t 'Add video call' }}"></a>
<a role="button" class="compose_control_button fa fa-smile-o emoji_map" aria-label="{{t 'Add emoji' }}" tabindex=0 title="{{t 'Add emoji' }}"></a>
<a role="button" class="compose_control_button compose_giphy_link {{#unless giphy_enabled }} hide {{/unless}}" aria-label="{{t 'Add GIF' }}" title="{{t 'Add GIF' }}">
- <i class="compose_giphy_logo zulip-icon zulip-icon-gif" tabindex=0></i>
+ <i class="compose_gif_icon zulip-icon zulip-icon-gif" tabindex=0></i>
</a>
{{#unless hide_drafts_link}}
<a class="message-control-link drafts-link" href="#drafts" title="{{t 'Drafts' }} (d)">{{t 'Drafts' }}</a>