From 44fe2eec03c58f72ab5a8fe03394c9588b691241 Mon Sep 17 00:00:00 2001 From: Penar Musaraj Date: Tue, 2 Apr 2019 15:36:47 -0400 Subject: [PATCH] Better fix for Safari user card position Better than a2c6683e3bc4486418fafd4c9f59151557ca84d6 --- .../javascripts/discourse/mixins/card-contents-base.js.es6 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 ba90ec9b24b..3158d31f06c 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) {