mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-18 03:39:29 +00:00
improvement: better contact name exhibition on group messages
This commit is contained in:
@@ -17,7 +17,6 @@ import Paper from "@material-ui/core/Paper";
|
||||
|
||||
import {
|
||||
Avatar,
|
||||
Button,
|
||||
Card,
|
||||
CardActions,
|
||||
CardHeader,
|
||||
@@ -163,6 +162,12 @@ const useStyles = makeStyles(theme => ({
|
||||
"&:hover, &.Mui-focusVisible": { backgroundColor: "#dcf8c6" },
|
||||
},
|
||||
|
||||
messageContactName: {
|
||||
paddingLeft: 6,
|
||||
color: "#6bcbef",
|
||||
fontWeight: 500,
|
||||
},
|
||||
|
||||
textContentItem: {
|
||||
overflowWrap: "break-word",
|
||||
padding: "3px 80px 6px 6px",
|
||||
@@ -564,6 +569,11 @@ const Ticket = () => {
|
||||
<div className={classes.messageLeft}>
|
||||
{(message.mediaUrl || message.mediaType === "vcard") &&
|
||||
checkMessageMedia(message)}
|
||||
{ticket.isGroup && (
|
||||
<span className={classes.messageContactName}>
|
||||
{message.contact?.name}
|
||||
</span>
|
||||
)}
|
||||
<div className={classes.textContentItem}>
|
||||
{message.mediaType !== "vcard" && message.body}
|
||||
<span className={classes.timestamp}>
|
||||
|
||||
Reference in New Issue
Block a user