mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 05:43:16 +08:00
correct positioning of user card on sites with custom headers
fix regression (can not click on links in card)
This commit is contained in:
parent
30ce67f689
commit
e3bfc2e447
|
@ -31,7 +31,8 @@ export default Discourse.View.extend(CleansUp, {
|
|||
if (self.get('controller.visible')) {
|
||||
var $target = $(e.target);
|
||||
if ($target.closest('[data-user-card]').data('userCard') ||
|
||||
$target.closest('a.mention').length > 0) {
|
||||
$target.closest('a.mention').length > 0 ||
|
||||
$target.closest('#user-card').length > 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -75,6 +76,8 @@ export default Discourse.View.extend(CleansUp, {
|
|||
position.left += overage;
|
||||
position.top += target.height() + 5;
|
||||
}
|
||||
|
||||
position.top -= $('#main-outlet').offset().top;
|
||||
self.$().css(position);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user