From 31c45b321b52e6ce71358c5fde2f73d7b015d93e Mon Sep 17 00:00:00 2001 From: Ivan Yelizariev Date: Fri, 29 Jul 2022 10:20:02 +0000 Subject: [PATCH] [FIX] web: fix css issue with rtl in calendar view This commit fixes following html block [1] ``` xml
08:00
Mitchel Admin - Administrator
``` `rtlcss` lib changes `padding-right` to `padding-left`, which doesn't work if we use `span` block next to `div` block, because position of the blocks are not changed (time is still on the left side and title is on the right). Adding the `ignore` directive solves the issue. [1]: https://github.com/odoo/odoo/blob/4a996060e6b922fecb299eca32d6763dbb12b831/addons/web/static/src/legacy/xml/web_calendar.xml#L16-L17 opw-2925491 closes odoo/odoo#97129 X-original-commit: e6807b75e33ab3a083c84ace0b6c337e7566e64b Signed-off-by: Nicolas Lempereur (nle) Signed-off-by: Ivan Elizaryev (iel) --- addons/web/static/src/legacy/scss/web_calendar.scss | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/web/static/src/legacy/scss/web_calendar.scss b/addons/web/static/src/legacy/scss/web_calendar.scss index d36518113b0..ee29e606d8d 100644 --- a/addons/web/static/src/legacy/scss/web_calendar.scss +++ b/addons/web/static/src/legacy/scss/web_calendar.scss @@ -342,6 +342,7 @@ $o-cw-filter-avatar-size: 20px; } .fc-time:not(:empty) { + /*rtl:ignore*/ padding-right: 0.5em; }