mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-11 02:31:29 +03:00
thumbnails now lazy load. when it is loading, a content loading gradient is shown in front of it
made file cards look better on mobile devices
This commit is contained in:
@@ -20,6 +20,7 @@ export class FileCardComponent implements OnInit {
|
||||
@Input() isPlaylist = false;
|
||||
@Input() count = null;
|
||||
type;
|
||||
image_loaded = false;
|
||||
|
||||
constructor(private postsService: PostsService, public snackBar: MatSnackBar, public mainComponent: MainComponent) { }
|
||||
|
||||
@@ -43,6 +44,10 @@ export class FileCardComponent implements OnInit {
|
||||
|
||||
}
|
||||
|
||||
imageLoaded(loaded) {
|
||||
this.image_loaded = true;
|
||||
}
|
||||
|
||||
public openSnackBar(message: string, action: string) {
|
||||
this.snackBar.open(message, action, {
|
||||
duration: 2000,
|
||||
|
||||
Reference in New Issue
Block a user