mirror of
https://github.com/discourse/discourse.git
synced 2025-07-12 11:53:34 +00:00
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.
This commit is contained in:
parent
6ebadaed2c
commit
a2c6683e3b
@ -169,6 +169,11 @@ export default Ember.Mixin.create({
|
|||||||
if (target) {
|
if (target) {
|
||||||
if (!this.site.mobileView) {
|
if (!this.site.mobileView) {
|
||||||
let position = target.offset();
|
let position = target.offset();
|
||||||
|
if (target.parents('.d-header')) {
|
||||||
|
position = target.position();
|
||||||
|
position.left += 10;
|
||||||
|
}
|
||||||
|
|
||||||
if (position) {
|
if (position) {
|
||||||
position.bottom = "unset";
|
position.bottom = "unset";
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user