mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-26 05:49:22 +00:00
Improve support of audio-only calls
This commit is contained in:
parent
088cbe77b9
commit
a4f5228037
@ -27,6 +27,10 @@
|
|||||||
visibility: visible;
|
visibility: visible;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.call-window.audio-only {
|
||||||
|
min-height: unset;
|
||||||
|
}
|
||||||
|
|
||||||
/* This could be moved to conversation page stylesheet also */
|
/* This could be moved to conversation page stylesheet also */
|
||||||
.call-window.embedded {
|
.call-window.embedded {
|
||||||
position: unset;
|
position: unset;
|
||||||
@ -36,6 +40,9 @@
|
|||||||
height: 150px;
|
height: 150px;
|
||||||
margin: 10px auto;
|
margin: 10px auto;
|
||||||
}
|
}
|
||||||
|
.call-window.embedded.audio-only {
|
||||||
|
height: 90px;
|
||||||
|
}
|
||||||
|
|
||||||
.call-window .head {
|
.call-window .head {
|
||||||
color: white;
|
color: white;
|
||||||
|
@ -48,6 +48,9 @@ class CallWindow extends CustomEvents {
|
|||||||
class: "call-window"
|
class: "call-window"
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if(!this.conv.can_have_video_call)
|
||||||
|
this.rootEl.classList.add("audio-only")
|
||||||
|
|
||||||
|
|
||||||
// Construct head
|
// Construct head
|
||||||
this.windowHead = createElem2({
|
this.windowHead = createElem2({
|
||||||
@ -475,7 +478,7 @@ class CallWindow extends CustomEvents {
|
|||||||
async toggleStream(isVideo) {
|
async toggleStream(isVideo) {
|
||||||
|
|
||||||
if(isVideo && !this.conv.can_have_video_call) {
|
if(isVideo && !this.conv.can_have_video_call) {
|
||||||
notify("Video calls can not be perfomed on this conversations!", "danger")
|
notify("Video calls can not be done on this conversations!", "danger")
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user