[FIX] mail: show attachment "uploading..." in chat window
When uploading an attachment from a chat window, the label "Uploading..." was not visible. This comes from attachment preview being too small, thus cutting entirely the filename and the upload progress bar. This commit fixes the issue by increasing the size of attachment previews in chat window, so that it takes 50% width. It also provides more space for labels on attachment preview while uploading, by removing the right padding for the animated "unlink" feature that works only for uploaded attachments anyway. Note that this commit does not entirely solve the issue: half the width of a chat window being enough to display the icon, the file extension, and sometimes the label "Uploading..." completely. The width of the icon and text extension combined is always the same, but the label "Uploading..." changes with the locale. The extra space from the padding removal makes this label fully visible in English, but not necessarily in other languages. The proper fix requires re-designing the style of attachment preview, which will be done in master. Task-Id: 1978640 closes odoo/odoo#33638 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com> Co-authored-by: Mohammed Shekha <msh@odoo.com>
This commit is contained in:
committed by
Alexandre Kühn
co-authored by
Mohammed Shekha
parent
5d088e6a90
commit
18f52a8ffa
@@ -231,6 +231,9 @@
|
||||
.o_composer_button_send, .o_chatter_avatar {
|
||||
display: none !important;
|
||||
}
|
||||
.o_attachment {
|
||||
width: 50%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -333,6 +336,10 @@ $o-mail-attachment-margin: 5px;
|
||||
}
|
||||
|
||||
&.o_attachment_uploading {
|
||||
.o_attachment_wrap {
|
||||
padding-right: 0px;
|
||||
}
|
||||
|
||||
.o_attachment_progress_bar {
|
||||
display: inline-block;
|
||||
margin: 0 0 0 8px;
|
||||
|
||||
Reference in New Issue
Block a user