瀏覽代碼

Fixes shared video thumbnail size and shared video on large background.

j8
yanas 9 年之前
父節點
當前提交
6edbcb9311
共有 2 個檔案被更改,包括 7 行新增0 行删除
  1. 2
    0
      css/videolayout_default.css
  2. 5
    0
      modules/UI/shared_video/SharedVideo.js

+ 2
- 0
css/videolayout_default.css 查看文件

424
 
424
 
425
 .sharedVideoAvatar {
425
 .sharedVideoAvatar {
426
     height: 100%;
426
     height: 100%;
427
+    width: 100%;
428
+    object-fit: cover;
427
 }
429
 }
428
 
430
 
429
 .noMic {
431
 .noMic {

+ 5
- 0
modules/UI/shared_video/SharedVideo.js 查看文件

296
     }
296
     }
297
 
297
 
298
     show () {
298
     show () {
299
+        let self = this;
299
         return new Promise(resolve => {
300
         return new Promise(resolve => {
300
             this.$iframe.fadeIn(300, () => {
301
             this.$iframe.fadeIn(300, () => {
302
+                self.bodyBackground = document.body.style.background;
303
+                document.body.style.background = 'black';
301
                 this.$iframe.css({opacity: 1});
304
                 this.$iframe.css({opacity: 1});
302
                 resolve();
305
                 resolve();
303
             });
306
             });
305
     }
308
     }
306
 
309
 
307
     hide () {
310
     hide () {
311
+        let self = this;
308
         return new Promise(resolve => {
312
         return new Promise(resolve => {
309
             this.$iframe.fadeOut(300, () => {
313
             this.$iframe.fadeOut(300, () => {
314
+                document.body.style.background = self.bodyBackground;
310
                 this.$iframe.css({opacity: 0});
315
                 this.$iframe.css({opacity: 0});
311
                 resolve();
316
                 resolve();
312
             });
317
             });

Loading…
取消
儲存