File tree Expand file tree Collapse file tree 3 files changed +30
-3
lines changed Expand file tree Collapse file tree 3 files changed +30
-3
lines changed Original file line number Diff line number Diff line change 1
1
< div class ="fluid-container ">
2
2
< app-actions [folder] ="root "> </ app-actions >
3
- < div class ="files ">
4
- < section class ="group ">
3
+ < div class ="not-items " *ngIf ="!root.folders?.length && !root.files?.length ">
4
+ < img src ="assets/images/no-files.svg " alt ="no-files-image ">
5
+ < span class ="description "> Agrega tu primer archivo o carpeta</ span >
6
+ </ div >
7
+ < div class ="files " *ngIf ="root.folders.length && root.folders.length ">
8
+ < section class ="group " *ngIf ="root.folders.length > 0 ">
5
9
< span class ="title "> Folders</ span >
6
10
< div class ="items ">
7
11
< app-folder *ngFor ="let folder of root.folders " class ="item "
8
12
[folder] ="folder "
9
13
> </ app-folder >
10
14
</ div >
11
15
</ section >
12
- < section class ="group ">
16
+ < section class ="group " *ngIf =" root.files.length > 0 " >
13
17
< span class ="title "> Files</ span >
14
18
< div class ="items ">
15
19
< app-file *ngFor ="let file of root.files " class ="item "
Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ body.modal-open {
68
68
display : flex ;
69
69
flex-direction : column ;
70
70
gap : 1rem ;
71
+ min-height : calc (100vh - 75px );
71
72
}
72
73
73
74
@@ -355,3 +356,24 @@ input {
355
356
min-height : 100vh ;
356
357
}
357
358
}
359
+
360
+ .not-items {
361
+ display : flex ;
362
+ flex-direction : column ;
363
+ justify-content : center ;
364
+ align-items : center ;
365
+ gap : 1.5rem ;
366
+ flex : 1 ;
367
+
368
+ & .description {
369
+ @include fs-4 ;
370
+ @include fw-500 ;
371
+ color : var (--fc-secondary );
372
+ text-align : center ;
373
+ }
374
+
375
+ & img {
376
+ width : 100% ;
377
+ max-width : 20rem ;
378
+ }
379
+ }
You can’t perform that action at this time.
0 commit comments