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.

reactions_tooltip : Improved responsiveness of tooltip for reactions.

aryanshridhar42b1ed23a9b1
diff --git a/static/js/click_handlers.js b/static/js/click_handlers.js
index 528ae375e12..7570be85fd4 100644
--- a/static/js/click_handlers.js
+++ b/static/js/click_handlers.js
@@ -228,7 +228,10 @@ exports.initialize = function () {
animation: false,
});
elem.tooltip("show");
- $(".tooltip, .tooltip-inner").css("max-width", "600px");
+ $(".tooltip, .tooltip-inner").css({
+ "margin-left": "15px",
+ "max-width": $(window).width() * 0.6,
+ });
// Remove the arrow from the tooltip.
$(".tooltip-arrow").remove();
});