@@ -210,26 +210,36 @@ html.dragging::before {
210
210
pointer-events : none;
211
211
}
212
212
213
+ .upload-status > * ,
213
214
.upload-status .uploading ,
214
215
.upload-status .failed {
215
216
visibility : visible;
216
217
}
217
218
218
219
.upload-status .label {
219
220
position : absolute;
220
- left : 50% ;
221
- top : 100% ;
221
+ left : 0 ;
222
+ top : 0 ;
223
+ width : 100% ;
224
+ color : # fff ;
225
+ text-align : center;
222
226
opacity : 0 ;
223
- transform : translate (-50% , -50% );
224
227
transition : transform .2s , opacity .2s ;
228
+ }
229
+
230
+ .upload-status .label .content {
231
+ position : relative;
232
+ display : inline-block;
233
+ vertical-align : top;
234
+ text-align : left;
235
+ text-align : start;
225
236
padding : 0.5em 1em ;
226
- color : # fff ;
227
237
box-sizing : border-box;
228
- max-width : 100% ;
229
238
overflow-wrap : break-word;
239
+ word-break : break-word;
230
240
}
231
241
232
- .upload-status .label . tips {
242
+ .upload-status .info . content {
233
243
padding-left : 2.5em ;
234
244
background : # c9c ;
235
245
background-color : rgba (204 , 153 , 204 , 0.8 );
@@ -244,8 +254,8 @@ html.dragging::before {
244
254
}
245
255
}
246
256
247
- .upload-status .label . tips : before ,
248
- .upload-status .label . tips : after {
257
+ .upload-status .info . content : before ,
258
+ .upload-status .info . content : after {
249
259
content : '' ;
250
260
position : absolute;
251
261
left : 1em ;
@@ -258,19 +268,19 @@ html.dragging::before {
258
268
animation : wheel 1s linear infinite;
259
269
}
260
270
261
- .upload-status .label . tips : after {
271
+ .upload-status .info . content : after {
262
272
border-color : currentColor transparent transparent transparent;
263
273
}
264
274
265
- .upload-status .label . failed {
275
+ .upload-status .warn . content {
266
276
background : # 800000 ;
267
277
background-color : rgba (128 , 0 , 0 , 0.8 );
268
278
}
269
279
270
- .upload-status .uploading .label . tips ,
271
- .upload-status .failed .label . failed {
280
+ .upload-status .uploading .info ,
281
+ .upload-status .failed .warn {
272
282
opacity : 1 ;
273
- transform : translate ( -50 % , 10 % );
283
+ transform : translateY ( 25 % );
274
284
}
275
285
276
286
.upload-status .progress {
0 commit comments