reactions_tooltip : Improved responsiveness of tooltip for reactions.

Improved responsiveness of message reactions tooltip .
Added css property for the reaction tooltip in ./static/js/click_handlers.js so that the tooltip doesn't exceed the sidebar .

Adressed a comment in #15364 .
This commit is contained in:
aryanshridhar
2020-09-06 21:14:04 +05:30
committed by Steve Howell
parent cc4f35bfa8
commit 42b1ed23a9

View File

@@ -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();
});