diff --git a/frontend/src/components/MessageInput/index.js b/frontend/src/components/MessageInput/index.js index e375d50..7b88c25 100644 --- a/frontend/src/components/MessageInput/index.js +++ b/frontend/src/components/MessageInput/index.js @@ -123,7 +123,7 @@ const useStyles = makeStyles(theme => ({ paddingRight: 7, }, - quotedContainerRight: { + quotedContainer: { flex: 1, marginRight: 5, overflowY: "hidden", @@ -133,41 +133,31 @@ const useStyles = makeStyles(theme => ({ position: "relative", }, - quotedMsgRight: { + quotedMsgBody: { padding: 10, - maxWidth: 300, - height: "auto", - whiteSpace: "pre-wrap", - }, - - quotedSideRight: { - flex: "none", - width: "4px", - backgroundColor: "#35cd96", - }, - - quotedContainerLeft: { - overflow: "hidden", - backgroundColor: "rgba(0, 0, 0, 0.05)", - borderRadius: "7.5px", - display: "flex", - position: "relative", - }, - - quotedMsg: { - padding: 10, - maxWidth: 300, height: "auto", display: "block", whiteSpace: "pre-wrap", overflow: "hidden", }, - quotedSideLeft: { + quotedSideOther: { + flex: "none", + width: "4px", + backgroundColor: "#35cd96", + }, + + quotedSideMine: { flex: "none", width: "4px", backgroundColor: "#6bcbef", }, + + messageContactName: { + display: "flex", + color: "#6bcbef", + fontWeight: 500, + }, })); const MessageInput = ({ ticketStatus }) => { @@ -335,17 +325,13 @@ const MessageInput = ({ ticketStatus }) => { const renderQuotedMessage = message => { return (
-
+
-
+
{!message.fromMe && ( {message.contact?.name} diff --git a/frontend/src/components/MessagesList/index.js b/frontend/src/components/MessagesList/index.js index b991b7f..2c42300 100644 --- a/frontend/src/components/MessagesList/index.js +++ b/frontend/src/components/MessagesList/index.js @@ -66,6 +66,12 @@ const useStyles = makeStyles(theme => ({ height: "auto", display: "block", position: "relative", + "&:hover #messageActionsButton": { + display: "flex", + position: "absolute", + top: 0, + right: 0, + }, whiteSpace: "pre-wrap", backgroundColor: "#ffffff", @@ -163,8 +169,8 @@ const useStyles = makeStyles(theme => ({ position: "relative", color: "#999", zIndex: 1, - backgroundColor: "#dcf8c6", - "&:hover, &.Mui-focusVisible": { backgroundColor: "#dcf8c6" }, + backgroundColor: "inherit", + "&:hover, &.Mui-focusVisible": { backgroundColor: "inherit" }, }, messageContactName: { @@ -553,6 +559,16 @@ const MessagesList = ({ ticketId, isGroup, setReplyingMessage }) => { {renderDailyTimestamps(message, index)} {renderMessageDivider(message, index)}
+ handleOpenMessageOptionsMenu(e, message)} + > + + {isGroup && ( {message.contact?.name}