mirror of https://github.com/Chocobozzz/PeerTube
Make the video responsive
parent
d908a155df
commit
cb11e77570
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue