]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix live image aspect ratio in theatre mode
authorChocobozzz <me@florianbigard.com>
Tue, 1 Jun 2021 07:38:52 +0000 (09:38 +0200)
committerChocobozzz <me@florianbigard.com>
Tue, 1 Jun 2021 09:03:52 +0000 (11:03 +0200)
client/src/app/+videos/+video-watch/video-watch.component.html
client/src/app/+videos/+video-watch/video-watch.component.scss

index bb41fba779792e2b305ee6142bff07075ca002bd..4e424d95d5c1339d6958bd33efffc17f95eeac9f 100644 (file)
@@ -8,7 +8,7 @@
     </div>
 
     <div id="videojs-wrapper">
-      <img *ngIf="playerPlaceholderImgSrc" [src]="playerPlaceholderImgSrc" alt="Placeholder image" i18n-alt>
+      <img class="placeholder-image" *ngIf="playerPlaceholderImgSrc" [src]="playerPlaceholderImgSrc" alt="Placeholder image" i18n-alt>
     </div>
 
     <my-video-watch-playlist
index 6124090c9de9994681a913f4884c650e99e0da63..af807a208b40d0a40473b3ddadaf8875f8b66916 100644 (file)
@@ -50,6 +50,10 @@ $video-info-margin-left: 44px;
   font-weight: $font-semibold;
 }
 
+.placeholder-image {
+  height: 100%;
+}
+
 #video-wrapper {
   $video-height: 66vh;