From ad2923b9756ccb6a8cd7af43dea6bfa0c7f6fcd7 Mon Sep 17 00:00:00 2001 From: Martti Malmi Date: Thu, 9 Apr 2020 20:58:24 +0300 Subject: [PATCH] video call btn --- src/css/style.css | 2 +- src/js/app.js | 2 +- src/js/videocall.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/css/style.css b/src/css/style.css index 5e9115d7..04a326d8 100644 --- a/src/css/style.css +++ b/src/css/style.css @@ -642,7 +642,7 @@ small { /* Position the tooltip text */ position: absolute; z-index: 1; - left: -125%; + right: 0; top: 100%; margin-left: -60px; diff --git a/src/js/app.js b/src/js/app.js index 4c2cea00..c4afd836 100644 --- a/src/js/app.js +++ b/src/js/app.js @@ -730,7 +730,7 @@ function addUserToHeader(pub) { textEl.append($('').addClass('typing-indicator').text('typing...')); $("#header-content").append(textEl); textEl.on('click', () => showProfile(pub)); - var videoCallBtn = $(`Video call`).attr('id', 'start-video-call').css({width:24, height:24}); + var videoCallBtn = $(`Video call`).attr('id', 'start-video-call').css({width:24, height:24, color: 'var(--msg-form-button-color)'}); videoCallBtn.click(() => callingInterval ? null : callUser(pub)); var voiceCallBtn = $('').css({width:20, height:20, 'margin-right': 20}); voiceCallBtn.click(() => callingInterval ? stopCalling(pub) : callUser(pub)); diff --git a/src/js/videocall.js b/src/js/videocall.js index 10817778..192af3a3 100644 --- a/src/js/videocall.js +++ b/src/js/videocall.js @@ -92,7 +92,7 @@ async function addStreamToPeerConnection(pc) { } function timeoutPlayCallSound() { - callSoundTimeout = setTimeout(() => callSound.play(), 3000); + callSoundTimeout = setTimeout(() => callSound.play(), 3500); } async function callUser(pub, video = true) {