fix(player): fix player width in dialog

This commit is contained in:
4gray committed 2024-01-07 20:57:55 +01:00
1 parent 014f826c80
commit bd09450551
1 file changed
+9 -1
@@ -1,5 +1,5 @@
import { NgIf } from '@angular/common';
import { Component, Inject } from '@angular/core';
import { Component, Inject, ViewEncapsulation } from '@angular/core';
import { MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
import { getExtensionFromUrl } from '../../../../shared/playlist.utils';
import { HtmlVideoPlayerComponent } from '../../player/components/html-video-player/html-video-player.component';
@@ -22,6 +22,14 @@ interface DialogData {
NgIf,
VjsPlayerComponent,
],
styles: `
mat-dialog-content {
.video-js {
height: 500px !important;
}
}
`,
encapsulation: ViewEncapsulation.None,
})
export class PlayerDialogComponent {
channel = {};