From 5996e2003d4f1454c3e007f0ecee4f7d187e0ee4 Mon Sep 17 00:00:00 2001 From: Aaron Bohy Date: Wed, 11 Aug 2021 08:26:28 +0000 Subject: [PATCH] [FIX] web: correctly position popover Before this commit, the popover was a bit far from its target. We use a margin to compensate the arrow size (8px), but we used it the wrong way, meaning that instead of applying, e.g. a margin of -8px, we applied a margin of 8px. As a consequence, popovers were always positionned at 16px from their target. closes odoo/odoo#74955 Signed-off-by: Bruno Boi --- addons/web/static/src/core/popover/popover.scss | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/addons/web/static/src/core/popover/popover.scss b/addons/web/static/src/core/popover/popover.scss index 3a5f355d18a..ef63a73049e 100644 --- a/addons/web/static/src/core/popover/popover.scss +++ b/addons/web/static/src/core/popover/popover.scss @@ -62,7 +62,7 @@ &.o-popper-position { &--tm { animation: $animation-time slide-top; - margin-top: -$arrow-size; + margin-top: $arrow-size; &::before, &::after { @@ -84,7 +84,7 @@ &--rm { animation: $animation-time slide-right; - margin-left: $arrow-size; + margin-left: -$arrow-size; &::before, &::after { @@ -106,7 +106,7 @@ &--bm { animation: $animation-time slide-bottom; - margin-top: $arrow-size; + margin-top: -$arrow-size; &::before, &::after { @@ -128,7 +128,7 @@ &--lm { animation: $animation-time slide-left; - margin-left: -$arrow-size; + margin-left: $arrow-size; &::before, &::after {