]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Videos watch responsive
authorChocobozzz <florian.bigard@gmail.com>
Mon, 11 Dec 2017 08:08:15 +0000 (09:08 +0100)
committerChocobozzz <florian.bigard@gmail.com>
Mon, 11 Dec 2017 08:08:15 +0000 (09:08 +0100)
client/src/app/videos/+video-watch/video-watch.component.html
client/src/app/videos/+video-watch/video-watch.component.scss

index dfed4768c48ceb9bc897965ef85a6019d7e092f5..43b175accce2520cc87be3e5f02dbe1358ef5811 100644 (file)
@@ -1,7 +1,7 @@
 <div class="row">
   <!-- We need the video container for videojs so we just hide it -->
   <div [hidden]="videoNotFound" id="video-container">
-     <video id="video-element" class="video-js vjs-peertube-skin"></video>
+     <video id="video-element" class="video-js vjs-peertube-skin vjs-fluid"></video>
   </div>
 
   <div *ngIf="videoNotFound" id="video-not-found">Video not found :'(</div>
index 2ccfd274909716b257a5aae68745884dc7f66c02..fcf625d6c3d650b74e42b36b8bba78989328f34e 100644 (file)
@@ -7,9 +7,14 @@
     width: 888px;
     height: 500px;
 
+    @media screen and (max-width: 800px) {
+      height: auto;
+    }
+
     // VideoJS create an inner video player
     video {
       outline: 0;
+      position: relative !important;
     }
   }
 }
   }
 }
 
+
+@media screen and (max-width: 800px) {
+  .other-videos {
+    display: none;
+  }
+
+  .video-bottom {
+    .video-info {
+      .video-info-name-actions {
+        align-items: left;
+        flex-direction: column;
+        margin-bottom: 30px;
+      }
+
+      .video-info-date-views-bar {
+        align-items: left;
+        flex-direction: column;
+        margin-bottom: 30px;
+
+        .video-info-likes-dislikes-bar {
+          margin-top: 0;
+        }
+      }
+    }
+  }
+}