Skip to content
This repository has been archived by the owner on Aug 28, 2023. It is now read-only.

Commit

Permalink
chat style
Browse files Browse the repository at this point in the history
  • Loading branch information
hedonicadapter committed Oct 28, 2022
1 parent b0969bf commit d857879
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions client/src/components/ChatBox.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
padding-bottom: 4px;
min-height: 22px;
font-family: inherit;
letter-spacing: 1.2px;
}

.iconContainer {
Expand Down
7 changes: 5 additions & 2 deletions client/src/components/ConversationBubble.module.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
.conversationText {
margin: 0px;
padding: 10px;
max-width: 100%;
word-wrap: break-all;
white-space: break-spaces;
text-overflow: ' ';
letter-spacing: 1.2px;
font-size: 0.8em;
margin-top: 6px;
margin-bottom: 8px;
margin-inline: 12px;
}

.sentTime {
Expand All @@ -26,6 +29,6 @@
}

.bubble {
border-radius: 15px;
border-radius: 12px;
margin-right: 10px;
}
2 changes: 1 addition & 1 deletion client/src/contexts/FriendsContext.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export function FriendsProvider({ children }) {
}, [friends]);

useEffect(() => {
if (!currentUser?.accessToken) return;
if (!currentUser || !currentUser._id || !currentUser.accessToken) return;

getFriends();
getConversations();
Expand Down

0 comments on commit d857879

Please sign in to comment.