From 63a3c998725980de5906ae7238aedb849c529035 Mon Sep 17 00:00:00 2001 From: xO-Tx Date: Fri, 24 Nov 2023 17:21:43 +0100 Subject: [PATCH] [FIX] website: fix visible cookies bar container Steps to reproduce: - Enable the "Cookies bar" in website configuration > Go to website (Edit mode). - Select the cookies bar > Change its layout to "Popup" > The modal container becomes visible in edit mode only. The `#website_cookies_bar` element will automatically get one line height (equivalent to its current `line-height` value) because of the `contenteditable="true"` added to it, which makes it visible in edit mode (The container has this default height in all layouts, but it's hidden by the cookies bar content in "Discrete" and "Classic" modes). The goal of this commit is to simply hide this element to prevent this behaviour. Remark: The same issue occurred on a `.s_popup` parent with an inner `.modal` element and was fixed in [1] by keeping their visibility synchronized. [1]: https://github.com/odoo/odoo/commit/cfd53b8fae3ad9f677df49a03fe6d2945dbb5da2 linked to opw-3485565 closes odoo/odoo#143913 X-original-commit: 4374adfde3627852d0a932f3d10fa74fe0b76a83 Signed-off-by: Robin Lejeune (role) --- addons/website/static/src/scss/website.scss | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/addons/website/static/src/scss/website.scss b/addons/website/static/src/scss/website.scss index 017b1010501..22c9c5f9b1c 100644 --- a/addons/website/static/src/scss/website.scss +++ b/addons/website/static/src/scss/website.scss @@ -1584,6 +1584,12 @@ $ribbon-padding: 100px; display: none !important; } +// Cookies Bar +#website_cookies_bar { + min-height: 0px; + height: 0px; +} + // Search results .o_search_result_item_detail { flex: 1;