Skip to content

Commit

Permalink
remove opacity on the system message boxes on chat
Browse files Browse the repository at this point in the history
  • Loading branch information
mavisakalyan committed Dec 1, 2024
1 parent 933fced commit c9ee062
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions apps/chat/components/chat/chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -207,12 +207,12 @@ function getMessageComponent(room: string, message: Message, id: string, players

// fake client side messages
case 'join': return (
<div className="opacity-60 text-center text-white bg-gray-400 border-gray-600 border mt-2 p-1 mx-14">
<div className="text-center text-white bg-gray-400 border-gray-600 border mt-2 p-1 mx-14">
<span className='font-bold'>{message.name}</span> joined the room.
</div>
)
case 'leave': return (
<div className="opacity-60 text-center text-white bg-gray-400 border-gray-600 border mt-2 p-1 mx-14">
<div className="text-center text-white bg-gray-400 border-gray-600 border mt-2 p-1 mx-14">
<span className='font-bold'>{message.name}</span> left the room.
</div>
)
Expand Down
4 changes: 2 additions & 2 deletions apps/chat/components/chat/desktop-chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,13 +162,13 @@ function getMessageComponent(room: string, message: Message, id: string, players
switch (message.method) {
case 'join':
return (
<div className="opacity-60 text-center text-white bg-gray-400 border-gray-600 border mt-2 p-1 mx-14">
<div className="text-center text-white bg-gray-400 border-gray-600 border mt-2 p-1 mx-14">
<span className='font-bold'>{message.name}</span> joined the room.
</div>
);
case 'leave':
return (
<div className="opacity-60 text-center text-white bg-gray-400 border-gray-600 border mt-2 p-1 mx-14">
<div className="text-center text-white bg-gray-400 border-gray-600 border mt-2 p-1 mx-14">
<span className='font-bold'>{message.name}</span> left the room.
</div>
);
Expand Down
4 changes: 2 additions & 2 deletions apps/chat/components/chat/embed-chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -180,13 +180,13 @@ function getMessageComponent(room: string, message: Message, id: string, players
switch (message.method) {
case 'join':
return (
<div className="opacity-60 text-center text-white bg-gray-400 border-gray-600 border mt-2 p-1 mx-14">
<div className="text-center text-white bg-gray-400 border-gray-600 border mt-2 p-1 mx-14">
<span className='font-bold'>{message.name}</span> joined the room.
</div>
);
case 'leave':
return (
<div className="opacity-60 text-center text-white bg-gray-400 border-gray-600 border mt-2 p-1 mx-14">
<div className="text-center text-white bg-gray-400 border-gray-600 border mt-2 p-1 mx-14">
<span className='font-bold'>{message.name}</span> left the room.
</div>
);
Expand Down

0 comments on commit c9ee062

Please sign in to comment.