diff --git a/package.json b/package.json index 7dacf09..023b897 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,9 @@ "@angular/router": "^8.2.11", "core-js": "^2.4.1", "file-saver": "^2.0.2", + "ng-lazyload-image": "^7.0.1", "ng4-configure": "^0.1.7", + "ngx-content-loading": "^0.1.3", "rxjs": "^6.5.3", "rxjs-compat": "^6.0.0-rc.0", "tslib": "^1.10.0", diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 7245241..fd7b0c7 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -24,6 +24,8 @@ import {VgControlsModule} from 'videogular2/compiled/controls'; import {VgOverlayPlayModule} from 'videogular2/compiled/overlay-play'; import {VgBufferingModule} from 'videogular2/compiled/buffering'; import { InputDialogComponent } from './input-dialog/input-dialog.component'; +import { LazyLoadImageModule } from 'ng-lazyload-image'; +import { NgxContentLoadingModule } from 'ngx-content-loading'; @NgModule({ declarations: [ @@ -62,8 +64,10 @@ import { InputDialogComponent } from './input-dialog/input-dialog.component'; VgControlsModule, VgOverlayPlayModule, VgBufferingModule, + LazyLoadImageModule, + NgxContentLoadingModule, RouterModule, - AppRoutingModule + AppRoutingModule, ], entryComponents: [ InputDialogComponent diff --git a/src/app/file-card/file-card.component.css b/src/app/file-card/file-card.component.css index 87e1049..ceba95a 100644 --- a/src/app/file-card/file-card.component.css +++ b/src/app/file-card/file-card.component.css @@ -30,4 +30,30 @@ margin: 0 auto; top: 50%; left: 50%; +} + +.img-div { + max-height: 80px; + padding: 0px; + margin: 0px 0px 0px -5px; + width: calc(100% + 5px + 5px); +} + +.max-two-lines { + display: -webkit-box; + display: -moz-box; + max-height: 2.4em; + line-height: 1.2em; + overflow: hidden; + text-overflow: ellipsis; + -webkit-box-orient: vertical; + -webkit-line-clamp: 2; +} + +@media (max-width: 576px){ + + .example-card { + width: 125px !important; + } + } \ No newline at end of file diff --git a/src/app/file-card/file-card.component.html b/src/app/file-card/file-card.component.html index d4cbc5a..a3caec2 100644 --- a/src/app/file-card/file-card.component.html +++ b/src/app/file-card/file-card.component.html @@ -3,12 +3,19 @@
-