Merge pull request #551 from jitsi/fix-shared-video-ui-glitches
Fixes shared video thumbnail size and shared video on large background.
This commit is contained in:
commit
5112041e15
|
@ -424,6 +424,8 @@
|
||||||
|
|
||||||
.sharedVideoAvatar {
|
.sharedVideoAvatar {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
|
object-fit: cover;
|
||||||
}
|
}
|
||||||
|
|
||||||
.noMic {
|
.noMic {
|
||||||
|
|
|
@ -296,8 +296,11 @@ class SharedVideoContainer extends LargeContainer {
|
||||||
}
|
}
|
||||||
|
|
||||||
show () {
|
show () {
|
||||||
|
let self = this;
|
||||||
return new Promise(resolve => {
|
return new Promise(resolve => {
|
||||||
this.$iframe.fadeIn(300, () => {
|
this.$iframe.fadeIn(300, () => {
|
||||||
|
self.bodyBackground = document.body.style.background;
|
||||||
|
document.body.style.background = 'black';
|
||||||
this.$iframe.css({opacity: 1});
|
this.$iframe.css({opacity: 1});
|
||||||
resolve();
|
resolve();
|
||||||
});
|
});
|
||||||
|
@ -305,8 +308,10 @@ class SharedVideoContainer extends LargeContainer {
|
||||||
}
|
}
|
||||||
|
|
||||||
hide () {
|
hide () {
|
||||||
|
let self = this;
|
||||||
return new Promise(resolve => {
|
return new Promise(resolve => {
|
||||||
this.$iframe.fadeOut(300, () => {
|
this.$iframe.fadeOut(300, () => {
|
||||||
|
document.body.style.background = self.bodyBackground;
|
||||||
this.$iframe.css({opacity: 0});
|
this.$iframe.css({opacity: 0});
|
||||||
resolve();
|
resolve();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue