[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) <qsm@odoo.com>
Signed-off-by: Benoit Socias (bso) <bso@odoo.com>
This commit is contained in:
Benoit Socias
2023-04-17 10:34:32 +02:00
committed by qsm-odoo
parent 14bcdbc6f5
commit f9c342374c
@@ -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;