mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-20 12:43:19 +03:00
Improved video preview behavior
This commit is contained in:
@@ -36,6 +36,7 @@ export class UnifiedFileCardComponent implements OnInit {
|
||||
thumbnailBlobURL = null;
|
||||
|
||||
streamURL = null;
|
||||
hide_image = false;
|
||||
|
||||
// input/output
|
||||
@Input() loading = true;
|
||||
@@ -149,6 +150,20 @@ export class UnifiedFileCardComponent implements OnInit {
|
||||
return fullLocation;
|
||||
}
|
||||
|
||||
onMouseOver() {
|
||||
this.elevated = true;
|
||||
setTimeout(() => {
|
||||
if (this.elevated) {
|
||||
this.hide_image = true;
|
||||
}
|
||||
}, 500);
|
||||
}
|
||||
|
||||
onMouseOut() {
|
||||
this.elevated = false;
|
||||
this.hide_image = false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function fancyTimeFormat(time) {
|
||||
|
||||
Reference in New Issue
Block a user