From e5030dfb8a935897e84f11a2226af6a3e2188639 Mon Sep 17 00:00:00 2001 From: Samuel Degueldre Date: Mon, 28 Sep 2020 08:14:02 +0000 Subject: [PATCH] [FIX] website_sale: fix ribbon color-preview in dropdown MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The display of the content of we-button was changed at some point from flex to block, this caused the width and height property of the color preview for ribbons to no longer have any effect. This commit fixes that by making the color-previews use the inline-block display mode. It also makes the preview round so as to be consistent with color-pickers, and aligns in in the middle so that it doesn't look off. closes odoo/odoo#58649 X-original-commit: 0c4f2fd9b2039d11f4245f54c5745543b48e8365 Signed-off-by: Jérémy Kersten (jke) --- addons/website_sale/static/src/scss/website_sale.editor.scss | 3 +++ 1 file changed, 3 insertions(+) diff --git a/addons/website_sale/static/src/scss/website_sale.editor.scss b/addons/website_sale/static/src/scss/website_sale.editor.scss index 658ed4f5e42..77a6b7fbb6e 100644 --- a/addons/website_sale/static/src/scss/website_sale.editor.scss +++ b/addons/website_sale/static/src/scss/website_sale.editor.scss @@ -30,6 +30,9 @@ width: 1em; height: 1em; border: 1px solid white; + display: inline-block; + vertical-align: middle; + border-radius: 50%; } .oe_drop_zone + .s_wsale_products_recently_viewed {