diff --git a/frontend/index.html b/frontend/index.html index 8831bab..2427707 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -3,7 +3,7 @@ watch party :D - + @@ -47,6 +47,6 @@ - + diff --git a/frontend/main.js b/frontend/main.js index f119e7b..cdde8de 100644 --- a/frontend/main.js +++ b/frontend/main.js @@ -253,14 +253,16 @@ const setupChatboxEvents = (socket) => { const input = chatForm.querySelector("input"); const content = input.value; - input.value = ""; + if (content.trim().length) { + input.value = ""; - socket.send(JSON.stringify({ - "op": "ChatMessage", - "data": { - "message": content, - } - })); + socket.send(JSON.stringify({ + "op": "ChatMessage", + "data": { + "message": content, + } + })); + } }); } diff --git a/frontend/styles.css b/frontend/styles.css index c465622..42240a8 100644 --- a/frontend/styles.css +++ b/frontend/styles.css @@ -118,7 +118,8 @@ button.small-button { display: none; } -.user-join { +.user-join, +.user-leave { font-style: italic; }