mirror of
https://github.com/ianramzy/decentralized-video-chat.git
synced 2024-11-23 10:39:20 +08:00
only refresh on fail + fix font size msg input
This commit is contained in:
parent
57bea47d0e
commit
441d53c7f8
7
public/css/chat.css
vendored
7
public/css/chat.css
vendored
@ -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); */
|
||||||
|
@ -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":
|
||||||
|
Loading…
Reference in New Issue
Block a user