@@ -117,6 +117,10 @@
position: relative;
width: $uploader-picture-width;
height: $uploader-picture-height;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ border-radius: 6px;
.close {
position: absolute;
right: 0;
@@ -141,8 +145,9 @@
@include oneline-ellipsis();
}
&__c {
- height: 100%;
- width: 100%;
+ max-width: 100%;
+ max-height: 100%;
&__file {
height: 100%;
@@ -23,6 +23,7 @@
<img
class="nut-uploader__preview-img__c"
+ mode="aspectFit"
@click="fileItemClick(item)"
v-if="item.type?.includes('image') && item.url"
:src="item.url"