fix(upload): 上传组件图片展示样式优化 #4300
Annotations
2 errors and 1 warning
Run npm run test:
src/upload/__tests__/vitest-upload.test.jsx#L1169
Error: Snapshot `Upload Component > props.theme: theme=image-flow works fine 1` mismatched
- Expected
+ Received
@@ -53,11 +53,11 @@
>
<div
class="t-image__wrapper t-image__wrapper--shape-square t-upload__card-image"
>
<img
- class="t-image t-image--fit-fill t-image--position-center"
+ class="t-image t-image--fit-contain t-image--position-center"
src=""
/>
<div
class="t-image__loading"
>
@@ -132,11 +132,11 @@
>
<div
class="t-image__wrapper t-image__wrapper--shape-square t-upload__card-image"
>
<img
- class="t-image t-image--fit-fill t-image--position-center"
+ class="t-image t-image--fit-contain t-image--position-center"
src="https://img1.txt"
/>
<div
class="t-image__loading"
>
@@ -234,11 +234,11 @@
>
<div
class="t-image__wrapper t-image__wrapper--shape-square t-upload__card-image"
>
<img
- class="t-image t-image--fit-fill t-image--position-center"
+ class="t-image t-image--fit-contain t-image--position-center"
src="https://img2.txt"
/>
<div
class="t-image__loading"
>
❯ src/upload/__tests__/vitest-upload.test.jsx:1169:23
|
Run npm run test
Process completed with exit code 1.
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading