mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-13 00:51:29 +03:00
Updated player view to prevent video from being too large
This commit is contained in:
@@ -14,7 +14,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.video-styles {
|
.video-styles {
|
||||||
width: 80%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
::ng-deep .mat-button-toggle-label-content {
|
::ng-deep .mat-button-toggle-label-content {
|
||||||
@@ -64,6 +64,7 @@
|
|||||||
.video-col {
|
.video-col {
|
||||||
padding-right: 0px;
|
padding-right: 0px;
|
||||||
padding-left: 0.01px;
|
padding-left: 0.01px;
|
||||||
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.save-icon {
|
.save-icon {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<div *ngIf="playlist.length > 0 && show_player">
|
<div *ngIf="playlist.length > 0 && show_player">
|
||||||
<div [ngClass]="(type === 'audio') ? null : 'container-video'" class="container">
|
<div [ngClass]="(type === 'audio') ? null : 'container-video'" class="container">
|
||||||
<div style="max-width: 100%; margin-left: 0px;" class="row">
|
<div style="max-width: 100%; margin-left: 0px; height: 70vh" class="row">
|
||||||
<div [ngClass]="(type === 'audio') ? 'my-2 px-1' : 'video-col'" class="col">
|
<div [ngClass]="(type === 'audio') ? 'my-2 px-1' : 'video-col'" class="col">
|
||||||
<vg-player (onPlayerReady)="onPlayerReady($event)" [style.background-color]="(type === 'audio') ? 'transparent' : 'black'">
|
<vg-player (onPlayerReady)="onPlayerReady($event)" [style.background-color]="(type === 'audio') ? 'transparent' : 'black'">
|
||||||
<video [ngClass]="(type === 'audio') ? 'audio-styles' : 'video-styles'" #media class="video-player" [vgMedia]="media" [src]="currentItem.src" id="singleVideo" preload="auto" controls>
|
<video [ngClass]="(type === 'audio') ? 'audio-styles' : 'video-styles'" #media class="video-player" [vgMedia]="media" [src]="currentItem.src" id="singleVideo" preload="auto" controls>
|
||||||
|
|||||||
Reference in New Issue
Block a user