aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/angular/videos/components
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-04-28 19:55:41 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-04-28 19:55:41 +0200
commitcb11e775705392df4e2b5529447a5b439338beaf (patch)
treedeb5377e644350ee995b1d3f5067783a06fcb4b1 /client/angular/videos/components
parentd908a155df8bb8af9c281587e425b209caa98ef8 (diff)
downloadPeerTube-cb11e775705392df4e2b5529447a5b439338beaf.tar.gz
PeerTube-cb11e775705392df4e2b5529447a5b439338beaf.tar.zst
PeerTube-cb11e775705392df4e2b5529447a5b439338beaf.zip
Make the video responsive
Diffstat (limited to 'client/angular/videos/components')
-rw-r--r--client/angular/videos/components/watch/videos-watch.component.scss3
-rw-r--r--client/angular/videos/components/watch/videos-watch.component.ts2
2 files changed, 4 insertions, 1 deletions
diff --git a/client/angular/videos/components/watch/videos-watch.component.scss b/client/angular/videos/components/watch/videos-watch.component.scss
index e69de29bb..27f34b33d 100644
--- a/client/angular/videos/components/watch/videos-watch.component.scss
+++ b/client/angular/videos/components/watch/videos-watch.component.scss
@@ -0,0 +1,3 @@
1.embed-responsive {
2 height: 100%;
3}
diff --git a/client/angular/videos/components/watch/videos-watch.component.ts b/client/angular/videos/components/watch/videos-watch.component.ts
index d1b90c190..c35c0ab19 100644
--- a/client/angular/videos/components/watch/videos-watch.component.ts
+++ b/client/angular/videos/components/watch/videos-watch.component.ts
@@ -40,7 +40,7 @@ export class VideosWatchComponent implements OnInit, CanDeactivate {
40 console.log('Adding ' + this.video.magnetUri + '.'); 40 console.log('Adding ' + this.video.magnetUri + '.');
41 this.client.add(this.video.magnetUri, (torrent) => { 41 this.client.add(this.video.magnetUri, (torrent) => {
42 console.log('Added ' + this.video.magnetUri + '.'); 42 console.log('Added ' + this.video.magnetUri + '.');
43 torrent.files[0].appendTo(this._elementRef.nativeElement, (err) => { 43 torrent.files[0].appendTo(this._elementRef.nativeElement.querySelector('.embed-responsive'), (err) => {
44 if (err) { 44 if (err) {
45 alert('Cannot append the file.'); 45 alert('Cannot append the file.');
46 console.error(err); 46 console.error(err);