File tree Expand file tree Collapse file tree 4 files changed +21
-20
lines changed Expand file tree Collapse file tree 4 files changed +21
-20
lines changed Original file line number Diff line number Diff line change 15
15
<slot ></slot >
16
16
</ui5-list >
17
17
{{ #if _showNoData }}
18
- <div class =" uc-no-files " >
18
+ <div class =" {{ classes.noFiles }} " >
19
19
<div class =" icon-container" >
20
20
<ui5-icon name =" document" ></ui5-icon >
21
21
</div >
22
- <ui5-title level = " H2 " wrap >{{ _noDataText }} </ui5-title >
23
- <ui5-label class =" subtitle" wrap >{{ _noDataDescription }} </ui5-label >
22
+ <ui5-label class = " title " wrapping-type = " Normal " >{{ _noDataText }} </ui5-label >
23
+ <ui5-label class =" subtitle" wrapping-type = " Normal " >{{ _noDataDescription }} </ui5-label >
24
24
</div >
25
- {{ else if _showDndOverlay}}
25
+ {{ /if }}
26
+ {{ #if _showDndOverlay }}
26
27
<div
27
28
class =" {{ classes.dndOverlay }} "
28
29
@dragenter =" {{ _ondragenter }} "
Original file line number Diff line number Diff line change @@ -320,6 +320,10 @@ class UploadCollection extends UI5Element {
320
320
"uc-drag-overlay" : this . _dndOverlayMode === UploadCollectionDnDOverlayMode . Drag ,
321
321
"uc-drop-overlay" : this . _dndOverlayMode === UploadCollectionDnDOverlayMode . Drop ,
322
322
} ,
323
+ noFiles : {
324
+ "uc-no-files" : true ,
325
+ "uc-no-files-dnd-overlay" : this . _showDndOverlay ,
326
+ } ,
323
327
} ;
324
328
}
325
329
@@ -336,7 +340,7 @@ class UploadCollection extends UI5Element {
336
340
}
337
341
338
342
get _showNoData ( ) {
339
- return this . items . length === 0 && ! this . _showDndOverlay ;
343
+ return this . items . length === 0 ;
340
344
}
341
345
342
346
get _noDataText ( ) {
Original file line number Diff line number Diff line change 6
6
position : relative;
7
7
}
8
8
9
- .ui5-uc-content .ui5-uc-content-no-data {
10
- min-height : 20rem ;
11
- }
12
-
13
9
/* No Files */
14
10
.uc-no-files {
15
- position : absolute;
16
- top : 0 ;
17
- right : 0 ;
18
- left : 0 ;
19
- bottom : 0 ;
20
11
box-sizing : border-box;
21
12
display : flex;
22
13
flex-direction : column;
27
18
}
28
19
29
20
.uc-no-files .icon-container {
21
+ display : flex;
22
+ align-items : center;
23
+ justify-content : center;
24
+ width : 100% ;
30
25
height : 8rem ;
31
26
}
32
27
33
28
.uc-no-files .icon-container [ui5-icon ] {
34
- font-size : 6rem ;
35
29
width : 6rem ;
36
30
height : 6rem ;
37
31
color : var (--sapContent_NonInteractiveIconColor );
38
32
opacity : 0.5 ;
39
33
}
40
34
41
- .uc-no-files [ ui5- title] {
42
- font-size : var (--ui5_upload_collection_level_2Size );
35
+ .uc-no-files . title {
36
+ font-size : var (--sapFontHeader2Size );
43
37
color : var (--sapGroup_TitleTextColor );
44
38
margin : 1rem 0 ;
45
39
}
46
40
47
41
.uc-no-files .subtitle {
48
- font-size : var (--ui5_upload_collection_level_5Size );
42
+ font-size : var (--sapFontHeader5Size );
49
43
color : var (--sapContent_LabelColor );
50
44
margin-bottom : 2rem ;
51
45
}
118
112
.uc-drop-overlay .dnd-overlay-text {
119
113
color : var (--sapContent_DragAndDropActiveColor );
120
114
}
115
+
116
+ .uc-no-files-dnd-overlay {
117
+ visibility : hidden;
118
+ }
Original file line number Diff line number Diff line change 1
1
: root {
2
- --ui5_upload_collection_level_2Size : 1.375rem ;
3
- --ui5_upload_collection_level_5Size : 1rem ;
4
2
--ui5_upload_collection_drag_overlay_border : 0.125rem dashed var (--sapContent_ForegroundBorderColor );
5
3
--ui5_upload_collection_drop_overlay_border : 0.125rem solid var (--sapContent_DragAndDropActiveColor );
6
4
--ui5_upload_collection_drop_overlay_background : transparent;
You can’t perform that action at this time.
0 commit comments