FIX: inconsistent user card position in Safari

FIX: inconsistent user card position in Safari

User cards triggered in header were incorrectly positioned in Safari desktop.

Using position() instead of offset() is more consistent, since header is a fixed element in this scenario.

diff --git a/app/assets/javascripts/discourse/mixins/card-contents-base.js.es6 b/app/assets/javascripts/discourse/mixins/card-contents-base.js.es6
index a8ea621..3b537ae 100644
--- a/app/assets/javascripts/discourse/mixins/card-contents-base.js.es6
+++ b/app/assets/javascripts/discourse/mixins/card-contents-base.js.es6
@@ -169,6 +169,11 @@ export default Ember.Mixin.create({
       if (target) {
         if (!this.site.mobileView) {
           let position = target.offset();
+          if (target.parents('.d-header')) {
+            position = target.position();
+            position.left += 10;
+          }
+
           if (position) {
             position.bottom = "unset";

GitHub sha: a2c6683e

Better fix for Safari user card position