Attachment preview style


Andy

Administrator
Staff member
In XF 2.2, the attachment preview can be improved by adding the follow code to your extra.less template:

Code:
// attachment preview

.file-preview img, .file-preview video {
    object-fit: contain;
}
This will ensure the attachment preview is completely visible and makes identifying the attachment easier.

Before
1598414806308.png


After
1598414851660.png
 

Similar threads

Top