Better fix for Safari user card position

Better fix for Safari user card position

Better than a2c6683e3bc4486418fafd4c9f59151557ca84d6

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 ba90ec9..3158d31 100644
--- a/app/assets/javascripts/discourse/mixins/card-contents-base.js.es6
+++ b/app/assets/javascripts/discourse/mixins/card-contents-base.js.es6
@@ -169,9 +169,8 @@ 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 (target.parents(".d-header").length > 0) {
+            position.top = target.position().top;
           }
 
           if (position) {

GitHub sha: 44fe2eec

1 Like

This commit has been mentioned on Discourse Meta. There might be relevant details there: