From d9492be108a5a7bc16570677ebc2e5612c525d74 Mon Sep 17 00:00:00 2001 From: Mohammed Shekha Date: Tue, 22 Dec 2020 13:33:16 +0000 Subject: [PATCH] [FIX] web: popover opened in rtl takes full space MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit before this commit: smiley box popover in rtl langauge takes full space it is because of left:0 given on o_popover class by default, which will be converted to right:0 when in rtl language and popover position will computed by popper will set left:'some pixels' due to which it takes full space. after this commit: smiley box will be displayed with expected width, unnecessary will not be added, as we have removed left:0 css, hence it will not be converted to right:0 when in RTL mode. task-2418264 closes odoo/odoo#65419 X-original-commit: 0bd842ad62901499abb703c92b15496cdfa05cc0 Signed-off-by: Sébastien Theys (seb) --- addons/web/static/src/scss/popover.scss | 2 -- 1 file changed, 2 deletions(-) diff --git a/addons/web/static/src/scss/popover.scss b/addons/web/static/src/scss/popover.scss index 500d097709e..5914fe51d28 100644 --- a/addons/web/static/src/scss/popover.scss +++ b/addons/web/static/src/scss/popover.scss @@ -55,8 +55,6 @@ max-width: 100vw; position: fixed; - top: 0; // will be updated in js - left: 0; // but let's set it in the viewport in case of test/debug z-index: 1060; border: 1px solid $border-color; background-color: #fff;