From f9c342374c00191f0958263f7f7086b878136fa2 Mon Sep 17 00:00:00 2001 From: Benoit Socias Date: Wed, 11 May 2022 11:29:16 +0000 Subject: [PATCH] [FIX] web_editor: allow aligning pictograms to the right in cards When replacing an image by a pictogram inside columns, the pictogram right-alignment is neutralised by the fact that the section of the card inside the column spans over 100% width. This commit makes pictograms in those sections rely on their auto width instead - thus letting the right-alignment happen as expected. Steps to reproduce: - Drop a "Columns" block. - Replace an image by a pictogram. - Select the pictogram. - Click on the "Float Right" icon in the toolbar. => Pictogram remained aligned to the left. task-2841127 closes odoo/odoo#118684 X-original-commit: c3eae07259cb38656aa910ad98d0da04f4fc7edb Signed-off-by: Quentin Smetz (qsm) Signed-off-by: Benoit Socias (bso) --- addons/web_editor/static/src/scss/web_editor.common.scss | 3 +++ 1 file changed, 3 insertions(+) diff --git a/addons/web_editor/static/src/scss/web_editor.common.scss b/addons/web_editor/static/src/scss/web_editor.common.scss index 403946386f2..3b523ccb920 100644 --- a/addons/web_editor/static/src/scss/web_editor.common.scss +++ b/addons/web_editor/static/src/scss/web_editor.common.scss @@ -227,6 +227,9 @@ img.ms-auto, img.mx-auto { display: block; text-align: center; } +.fa.card-img, .fa.card-img-top, .fa.card-img-bottom { + width: auto; +} div.media_iframe_video { margin: 0 auto;