From bd094505515616a94fc97c7d5110bede92de369f Mon Sep 17 00:00:00 2001 From: 4gray Date: Sun, 7 Jan 2024 20:57:55 +0100 Subject: [PATCH] fix(player): fix player width in dialog --- .../xtream/player-dialog/player-dialog.component.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/app/xtream/player-dialog/player-dialog.component.ts b/src/app/xtream/player-dialog/player-dialog.component.ts index ebcca004c..bad2a7583 100644 --- a/src/app/xtream/player-dialog/player-dialog.component.ts +++ b/src/app/xtream/player-dialog/player-dialog.component.ts @@ -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 = {};