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.

popovers: Align user profile popover with right col USERS header.

Aman Agrawal6e189b14a6fa
diff --git a/frontend_tests/zjsunit/zjquery.js b/frontend_tests/zjsunit/zjquery.js
index a1fe1fc076b..04fc6c06775 100644
--- a/frontend_tests/zjsunit/zjquery.js
+++ b/frontend_tests/zjsunit/zjquery.js
@@ -363,6 +363,12 @@ exports.make_new_elem = function (selector, opts) {
slice() {
return self;
},
+ offset() {
+ return {
+ top: 0,
+ left: 0,
+ };
+ },
};
if (selector[0] === "<") {
diff --git a/static/js/popovers.js b/static/js/popovers.js
index c29d5cb7bff..ddc24d6e838 100644
--- a/static/js/popovers.js
+++ b/static/js/popovers.js
@@ -232,7 +232,7 @@ function render_user_info_popover(
}),
html: true,
trigger: "manual",
- top_offset: 100,
+ top_offset: $("#userlist-title").offset().top + 15,
fix_positions: true,
});
popover_element.popover("show");