Skip to content

Commit

Permalink
Merge pull request #70 from vaibhavgarg25/v4
Browse files Browse the repository at this point in the history
slight changes on chat
  • Loading branch information
vaibhavgarg25 authored Sep 14, 2024
2 parents 514fc4b + dca4c65 commit 10ac906
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion client/src/components/Negotiate/Chat.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export default function Chat() {

setMessages((prevMessages) => [...prevMessages, newMessage]);
// Clear input
event.target.value="";

setmessage('');
// Emit the message to the server
await socket.emit("send-message", newMessage);
Expand Down Expand Up @@ -203,6 +203,7 @@ export default function Chat() {
name="negotiate"
id="chat"
placeholder="Send a message"
value={message}
onChange={handleChange}
/>
<Recorder />
Expand Down
3 changes: 2 additions & 1 deletion client/src/components/Negotiate/chat.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
}
.send>textarea{
padding: 4px;
width: 55vw;
width: 35vw;
height: 6vh;
color: black;
font-size: 18px;
Expand All @@ -112,6 +112,7 @@
text-align: center;
overflow-y: auto;
border-radius: 10px;
resize: none;
}
.send>button{
/* border-radius:10px; */
Expand Down

0 comments on commit 10ac906

Please sign in to comment.