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

View File

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