mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Make the video responsive
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
.embed-responsive {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
@@ -40,7 +40,7 @@ export class VideosWatchComponent implements OnInit, CanDeactivate {
|
||||
console.log('Adding ' + this.video.magnetUri + '.');
|
||||
this.client.add(this.video.magnetUri, (torrent) => {
|
||||
console.log('Added ' + this.video.magnetUri + '.');
|
||||
torrent.files[0].appendTo(this._elementRef.nativeElement, (err) => {
|
||||
torrent.files[0].appendTo(this._elementRef.nativeElement.querySelector('.embed-responsive'), (err) => {
|
||||
if (err) {
|
||||
alert('Cannot append the file.');
|
||||
console.error(err);
|
||||
|
||||
Reference in New Issue
Block a user