From 2ca5fdcaacf1e364812b0d3c56a5c20e72cc9980 Mon Sep 17 00:00:00 2001 From: "Nasreddin Boulif (bon)" Date: Mon, 7 Feb 2022 11:09:35 +0000 Subject: [PATCH] [FIX] web_editor: resize favicon preview image Steps to reproduce: - Install Website - Go to Settings -> Website - Replace favicon with a 'big' image - Go to Website and edit any page - Click on Home Issue: Favicon preview in popover is too big. Solution: Set a max height/width for favicon preview (16x16). opw-2744522 closes odoo/odoo#84101 X-original-commit: bb90ff7f320f815310ca8e76d19bccadf4204cc2 Signed-off-by: Romain Derie (rde) Signed-off-by: Nasreddin Boulif (bon) --- addons/web_editor/static/src/scss/wysiwyg.scss | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/addons/web_editor/static/src/scss/wysiwyg.scss b/addons/web_editor/static/src/scss/wysiwyg.scss index 6db5f18949f..e8f2ba6a679 100644 --- a/addons/web_editor/static/src/scss/wysiwyg.scss +++ b/addons/web_editor/static/src/scss/wysiwyg.scss @@ -797,6 +797,11 @@ img::selection { // buttons in the popover user-select: none; + .o_we_preview_favicon > img { + max-height: 16px; + max-width: 16px; + } + .o_we_url_link { word-break: break-all; }