The attachment preview can be improved by adding the following code to your extra.less template:
This will ensure the attachment preview is completely visible and makes identifying the attachment easier.


Code:
// attachment preview
.file-preview img, .file-preview video {
object-fit: contain;
}
Before:

After:
