mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06: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')) {
|
if (self.get('controller.visible')) {
|
||||||
var $target = $(e.target);
|
var $target = $(e.target);
|
||||||
if ($target.closest('[data-user-card]').data('userCard') ||
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -75,6 +76,8 @@ export default Discourse.View.extend(CleansUp, {
|
|||||||
position.left += overage;
|
position.left += overage;
|
||||||
position.top += target.height() + 5;
|
position.top += target.height() + 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
position.top -= $('#main-outlet').offset().top;
|
||||||
self.$().css(position);
|
self.$().css(position);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user