Skip to content
This repository has been archived by the owner on Jan 11, 2025. It is now read-only.

Commit

Permalink
[IMP] styles in message box
Browse files Browse the repository at this point in the history
  • Loading branch information
alicalimli committed Nov 4, 2022
1 parent 109df1f commit 7ae6fe3
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions src/features/conversation/MessageBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,23 +141,21 @@ const MessageBox = ({
className="relative"
onClick={() => setIsEditingMsg(false)}
>
<AiOutlineStop className="text-2xl text-black dark:text-white" />
<AiOutlineStop className="text-2xl text" />
<TwTooltip tip="cancel" position="top" />
</button>
)}
{isCurrentUser && !isEditingMsg ? (
<div className="flex translate-y-1/4 invisible group-hover:visible rounded-full dark:bg-bgmain-dark shadow-md overflow-hidden ">
<button
onClick={() => deleteBtnHandler(currentMsg)}
className="relative group dark:text-muted-dark
text-muted-light p-2 hover:bg-muted-light/10 dark:hover:bg-muted-light flex justify-center items-center"
className="relative group text-muted p-2 hover:bg-muted-light/10 dark:hover:bg-muted-light flex justify-center items-center"
>
<BsFillTrashFill className="" />
</button>
<button
onClick={() => editBtnHandler()}
className="relative group dark:text-muted-dark
text-muted-light p-2 hover:bg-muted-light/10 dark:hover:bg-muted-light flex justify-center items-center"
className="relative group text-muted p-2 hover:bg-muted-light/10 dark:hover:bg-muted-light flex justify-center items-center"
>
<BsPencilFill />
</button>
Expand All @@ -168,12 +166,8 @@ const MessageBox = ({
</div>
)}

<div className="text-xs flex gap-1 items-center text-black dark:text-white">
{currentMsg.isEdited && (
<span className="dark:text-muted-dark text-muted-light">
edited
</span>
)}
<div className="text-xs flex gap-1 items-center text-muted">
{currentMsg.isEdited && <span className="text-muted">edited</span>}
{isGroup && !isCurrentUser && (
<>
<p className={`${isCurrentUser ? "text-end" : "text-start"} `}>
Expand Down

0 comments on commit 7ae6fe3

Please sign in to comment.