Skip to content

Commit 1f4d97a

Browse files
committed
fix(Upload): progressbar layout exception in fusion-cool tool
1 parent 822c84b commit 1f4d97a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/upload/main.scss

+6-2
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,9 @@
105105
// so line-height = height / 2 - padding-top;
106106
line-height: $upload-text-list-height / 2 - $s-1;
107107
.#{$css-prefix}upload-list-item-progress {
108+
line-height: 0;
109+
padding-top: ($upload-text-list-height / 2 - $s-1 - $upload-text-list-progressbar-height) / 2;
110+
padding-bottom: ($upload-text-list-height / 2 - $s-1 - $upload-text-list-progressbar-height) / 2;
108111
.#{$css-prefix}progress-line-underlay {
109112
height: $upload-text-list-progressbar-height;
110113
}
@@ -251,8 +254,9 @@
251254
margin-left: $upload-image-list-item-picture-size + $thumbnail-margin-right;
252255
// 右边边 把 icon 的空间空出来
253256
margin-right: $upload-image-list-close-icon-size + $upload-image-list-close-icon-right * 2;
254-
height: $upload-image-list-item-picture-size / 2;
255-
line-height: $upload-image-list-item-picture-size / 2;
257+
line-height: 0;
258+
padding-top: ($upload-image-list-item-picture-size / 2 - $upload-image-list-progressbar-height) / 2;
259+
padding-bottom: ($upload-image-list-item-picture-size / 2 - $upload-image-list-progressbar-height) / 2;
256260

257261
.#{$css-prefix}progress-line-underlay {
258262
height: $upload-image-list-progressbar-height;

0 commit comments

Comments
 (0)