only refresh on fail + fix font size msg input

This commit is contained in:
Ian Ramzy 2020-04-20 21:38:41 -04:00
parent 57bea47d0e
commit 441d53c7f8
2 changed files with 9 additions and 5 deletions

7
public/css/chat.css vendored
View File

@ -244,8 +244,8 @@ button:hover {
}
.compose input {
font-family: inherit;
font-size: inherit;
/*font-family: inherit;*/
font-size: 0.8rem;
border: none;
width: 100%;
height: calc(100% - 5px);
@ -257,6 +257,7 @@ button:hover {
.compose input::placeholder {
color: white;
font-size: 0.8rem;
}
#chat-zone {
@ -527,7 +528,7 @@ button:hover {
.compose {
position: absolute;
font-size: 1rem;
font-size: 0.8rem;
left: 10%;
right: initial;
/* bottom: calc(3rem + 2rem); */

View File

@ -178,9 +178,12 @@ var VideoChat = {
VideoChat.socket.disconnect();
break;
case "disconnected":
logIt("disconnected");
case "failed":
logIt("failed/disconnected");
// Refresh page if connection is lost
logIt("failed");
// VideoChat.socket.connect
// VideoChat.createOffer();
// Refresh page if connection has failed
location.reload();
break;
case "closed":