1- < h1 > Add Tool</ h1 >
2- < cdk-virtual-scroll-viewport itemSize ="50 " class ="example-viewport ">
3- < div class ="grid ">
4- < mat-card appearance ="outlined " class ="example-card " *cdkVirtualFor ="let gadget of library; let idx = index "
5- [class] ="'class_color' + idx ">
6- < mat-card-header >
7- < div mat-card-avatar style ="background-image:
1+ < div class ="library-container ">
2+ < h1 > Add Tool</ h1 >
3+ < cdk-virtual-scroll-viewport itemSize ="50 " class ="example-viewport ">
4+ < div class ="grid ">
5+ < mat-card class ="library-card "
6+ *cdkVirtualFor ="let gadget of library; let idx = index " [ngStyle] ="{'border-top-color': colors[idx]} ">
7+ < mat-card-header >
8+ < div mat-card-avatar style ="background-image:
89 url('{{ gadget.icon }}')
910 ; background-size: cover; " mat-card-title-group > </ div >
10- < mat-card-title > {{ gadget.title }}</ mat-card-title >
11- < mat-card-subtitle > {{ gadget.subtitle }}</ mat-card-subtitle >
12- </ mat-card-header >
13- < mat-card-content >
14- {{ gadget.description }}
15- </ mat-card-content >
16- < mat-card-actions align ="end ">
17- < button mat-mini-fab color ="primary " class ="tab-button " (click) ="addGadget(gadget) ">
18- < mat-icon > {{ gadget.actions[0].name }}</ mat-icon >
11+ < mat-card-title > {{ gadget.title }}</ mat-card-title >
12+ < mat-card-subtitle > {{ gadget.subtitle }}</ mat-card-subtitle >
13+ </ mat-card-header >
14+ < mat-card-content >
15+ {{ gadget.description }}
16+ </ mat-card-content >
17+ < mat-card-actions align ="end ">
18+ < button mat-mini-fab color ="primary " class ="tab-button " (click) ="addGadget(gadget) ">
19+ < mat-icon > {{ gadget.actions[0].name }}</ mat-icon >
20+ </ button >
21+ </ mat-card-actions >
22+ </ mat-card >
23+ < mat-dialog-actions align ="end ">
24+ < button #dialog color ="primary " selected mat-button mat-dialog-close >
25+ Close
1926 </ button >
20- </ mat-card-actions >
21- </ mat-card >
22- < mat-dialog-actions align ="end ">
23- < button #dialog color ="primary " selected mat-button mat-dialog-close >
24- Close
25- </ button >
26- </ mat-dialog-actions >
27- < br />
28- </ div >
29- </ cdk-virtual-scroll-viewport >
27+ </ mat-dialog-actions >
28+ < br />
29+ </ div >
30+ </ cdk-virtual-scroll-viewport >
31+ </ div >
0 commit comments