[FIX] hr_expense: css issue on attachment

Before this pr, when attaching an image to an expense, the image was misplaced.
By adding a display flex and justify the content in the center, the image is now
vertically align in the center.

closes odoo/odoo#121607

Task-id: 3329707
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
This commit is contained in:
Maximilien (malb)
2023-05-23 18:01:43 +02:00
parent 80de5298b2
commit 1c6a8a2975
2 changed files with 7 additions and 1 deletions
@@ -19,6 +19,12 @@
}
}
.o_center_attachment .o-mail-Attachment-imgContainer {
display: flex;
justify-content: center;
z-index: -1;
}
.o_dropzone {
width: 100%;
height: 100%;
+1 -1
View File
@@ -215,7 +215,7 @@
<field name="description" placeholder="Notes..."/>
</div>
</sheet>
<div class="o_attachment_preview"/>
<div class="o_attachment_preview o_center_attachment"/>
<div class="oe_chatter">
<field name="message_follower_ids"/>
<field name="activity_ids"/>