Procházet zdrojové kódy

Merge pull request #1262 from jitsi/ui-fixes

Ui fixes
j8
Дамян Минков před 8 roky
rodič
revize
3fd33d0f50

+ 1
- 1
css/_filmstrip.scss Zobrazit soubor

@@ -70,7 +70,7 @@
70 70
             display: none;
71 71
             position: relative;
72 72
             background-size: contain;
73
-            border: $thumbnailVideoBorder solid $thumbnailBorderColor;
73
+            border: $thumbnailVideoBorder solid transparent;
74 74
             border-radius: $borderRadius;
75 75
             margin: 0 $thumbnailVideoMargin;
76 76
 

+ 1
- 0
css/_videolayout_default.scss Zobrazit soubor

@@ -474,6 +474,7 @@
474 474
 #localConnectionMessage {
475 475
     display: none;
476 476
     position: absolute;
477
+    left: 0;
477 478
     width: 100%;
478 479
     top:50%;
479 480
     z-index: 2;

+ 0
- 3
css/themes/_light.scss Zobrazit soubor

@@ -85,9 +85,6 @@ $popupMenuSelectedItemBackground: rgba(256, 256, 256, .2);
85 85
 // Toolbar
86 86
 $splitterColor: #ccc;
87 87
 
88
-// Thumbnail
89
-$thumbnailBorderColor: rgba(71, 71, 71, .7);
90
-
91 88
 /**
92 89
  * Forms
93 90
  */

+ 19
- 2
modules/UI/videolayout/VideoContainer.js Zobrazit soubor

@@ -361,6 +361,9 @@ export class VideoContainer extends LargeContainer {
361 361
         this.$video.css({
362 362
             transform: flipX ? 'scaleX(-1)' : 'none'
363 363
         });
364
+
365
+        // Reset the large video background depending on the stream.
366
+        this.setLargeVideoBackground(this.avatarDisplayed);
364 367
     }
365 368
 
366 369
     /**
@@ -395,8 +398,7 @@ export class VideoContainer extends LargeContainer {
395 398
         // default background set.
396 399
         // In order to fix this code we need to introduce video background or
397 400
         // find a workaround for the video flickering.
398
-        $("#largeVideoContainer").css("background",
399
-            (show) ? interfaceConfig.DEFAULT_BACKGROUND : "#000");
401
+        this.setLargeVideoBackground(show);
400 402
 
401 403
         this.$avatar.css("visibility", show ? "visible" : "hidden");
402 404
         this.avatarDisplayed = show;
@@ -465,4 +467,19 @@ export class VideoContainer extends LargeContainer {
465 467
     stayOnStage () {
466 468
         return false;
467 469
     }
470
+
471
+    /**
472
+     * Sets the large video container background depending on the container
473
+     * type and the parameter indicating if an avatar is currently shown on
474
+     * large.
475
+     *
476
+     * @param {boolean} isAvatar - Indicates if the avatar is currently shown
477
+     * on the large video.
478
+     * @returns {void}
479
+     */
480
+    setLargeVideoBackground (isAvatar) {
481
+        $("#largeVideoContainer").css("background",
482
+            (this.videoType === VIDEO_CONTAINER_TYPE && !isAvatar)
483
+                ? "#000" : interfaceConfig.DEFAULT_BACKGROUND);
484
+    }
468 485
 }

Načítá se…
Zrušit
Uložit