|
@@ -66,111 +66,46 @@ const useStyles = makeStyles({
|
|
|
flexDirection:'column',
|
|
|
borderRadius: 7,
|
|
|
position: 'relative',
|
|
|
- marginBottom: 5,
|
|
|
padding:'10px 0px 10px 22px'
|
|
|
},
|
|
|
wrapper: {
|
|
|
position: 'relative',
|
|
|
display: 'flex',
|
|
|
- alignItems: 'center',
|
|
|
- alignContent: 'center',
|
|
|
- flexWrap:'wrap',
|
|
|
+ alignItems: 'start',
|
|
|
+ alignContent: 'start',
|
|
|
+ flexDirection: 'column',
|
|
|
maxWidth: 450,
|
|
|
minWidth:200,
|
|
|
- padding: "10px",
|
|
|
- paddingBottom:18,
|
|
|
- backgroundColor: "#ffffff",
|
|
|
- border: "1px solid #f0f0f0",
|
|
|
+ padding: 5,
|
|
|
borderRadius: 7,
|
|
|
+ wordBreak:'break-word',
|
|
|
+ textAlign: "left",
|
|
|
+ font: "400 .9em 'Open Sans', sans-serif",
|
|
|
},
|
|
|
wrapperInner: {
|
|
|
+ position: 'relative',
|
|
|
display: 'flex',
|
|
|
alignItems: 'center',
|
|
|
alignContent: 'center',
|
|
|
- width:'100%'
|
|
|
- },
|
|
|
- message: {
|
|
|
- display: 'flex',
|
|
|
- alignItems: 'center',
|
|
|
- alignContent: 'center',
|
|
|
- flexWrap: 'wrap',
|
|
|
- marginLeft:20,
|
|
|
- wordBreak:'break-word',
|
|
|
- textAlign: "left",
|
|
|
- font: "400 .9em 'Open Sans', sans-serif",
|
|
|
- "&:after": {
|
|
|
- content: "''",
|
|
|
- position: "absolute",
|
|
|
- width: "0",
|
|
|
- height: "0",
|
|
|
- borderBottom: "15px solid #ffffff",
|
|
|
- borderLeft: "15px solid transparent",
|
|
|
- borderRight: "15px solid transparent",
|
|
|
- bottom: '0px',
|
|
|
- left: "-15px"
|
|
|
- },
|
|
|
- "&:before": {
|
|
|
- content: "''",
|
|
|
- position: "absolute",
|
|
|
- width: "0",
|
|
|
- height: "0",
|
|
|
- borderBottom: "17px solid #ffffff",
|
|
|
- borderLeft: "16px solid transparent",
|
|
|
- borderRight: "16px solid transparent",
|
|
|
- bottom: "-1px",
|
|
|
- left: "-17px"
|
|
|
- }
|
|
|
- },
|
|
|
- messageActive: {
|
|
|
- display: 'flex',
|
|
|
- alignItems: 'center',
|
|
|
- alignContent: 'center',
|
|
|
- flexWrap: 'wrap',
|
|
|
- marginLeft:20,
|
|
|
- wordBreak:'break-word',
|
|
|
- textAlign: "left",
|
|
|
- font: "400 .9em 'Open Sans', sans-serif",
|
|
|
- "&:after": {
|
|
|
- content: "''",
|
|
|
- position: "absolute",
|
|
|
- width: "0",
|
|
|
- height: "0",
|
|
|
- borderBottom: "15px solid #babdbc",
|
|
|
- borderLeft: "15px solid transparent",
|
|
|
- borderRight: "15px solid transparent",
|
|
|
- bottom: '0px',
|
|
|
- left: "-15px"
|
|
|
- },
|
|
|
- "&:before": {
|
|
|
- content: "''",
|
|
|
- position: "absolute",
|
|
|
- width: "0",
|
|
|
- height: "0",
|
|
|
- borderBottom: "17px solid #babdbc",
|
|
|
- borderLeft: "16px solid transparent",
|
|
|
- borderRight: "16px solid transparent",
|
|
|
- bottom: "0px",
|
|
|
- left: "-17px"
|
|
|
- }
|
|
|
- },
|
|
|
- copyIcon: {
|
|
|
- color: '#b56ff7',
|
|
|
+ width: '100%',
|
|
|
cursor: 'pointer',
|
|
|
- marginRight: 7,
|
|
|
'&:hover': {
|
|
|
- color: '#9c3bf8',
|
|
|
- },
|
|
|
+ backgroundColor: 'rgba(104, 105, 104, 0.2)'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ wrapperInnerMessage: {
|
|
|
+ display: 'flex',
|
|
|
+ alignItems: 'start',
|
|
|
+ alignContent: 'start',
|
|
|
+ flexDirection: 'column',
|
|
|
+ marginLeft:20,
|
|
|
},
|
|
|
time: {
|
|
|
- position: "absolute",
|
|
|
- fontSize: ".65em",
|
|
|
- fontWeight:600,
|
|
|
- bottom: 6,
|
|
|
- right: 6,
|
|
|
- color: '#414141',
|
|
|
- padding: 3,
|
|
|
- borderRadius: 5,
|
|
|
- },
|
|
|
+ fontSize: ".65em",
|
|
|
+ fontWeight:600,
|
|
|
+ color: '#414141',
|
|
|
+ marginLeft:'auto',
|
|
|
+ },
|
|
|
modalDelete: {
|
|
|
background: '#ffffff',
|
|
|
position: 'absolute',
|
|
@@ -243,20 +178,20 @@ const useStyles = makeStyles({
|
|
|
pointerEvents: 'auto'
|
|
|
},
|
|
|
folderIcon: {
|
|
|
- color: '#00b333',
|
|
|
+ color: '#26afee',
|
|
|
cursor: 'pointer',
|
|
|
'&:hover': {
|
|
|
- color: '#00e040'
|
|
|
+ color: '#49c1f8'
|
|
|
},
|
|
|
},
|
|
|
- forwardColumn: {
|
|
|
+ column: {
|
|
|
position: 'absolute',
|
|
|
content: '',
|
|
|
width: 2,
|
|
|
- left:53,
|
|
|
+ left:43,
|
|
|
top:'10%',
|
|
|
height:'80%',
|
|
|
- backgroundColor: '#00b333',
|
|
|
+ backgroundColor: '#26afee',
|
|
|
},
|
|
|
});
|
|
|
|
|
@@ -328,14 +263,13 @@ const MessageLeftForward = ({url,message,name,lastName,forwardName,forwardLastNa
|
|
|
return (
|
|
|
<div className={classes.container}>
|
|
|
<div onContextMenu={(e) => handleContextMenu(e)} className={classes.wrapper}
|
|
|
- style={{backgroundColor:selected?'#babdbc':undefined,
|
|
|
- border:selected?'#babdbc':undefined,pointerEvents:isSomeSelected?'none':'auto'}}>
|
|
|
- <Typography style={{marginLeft:55,color: "#42aee0"}} variant="h6" align="right">
|
|
|
+ style={{backgroundColor:selected?'#babdbc':'#ffffff',pointerEvents:isSomeSelected?'none':'auto'}}>
|
|
|
+ <Typography style={{color: "#00b333"}} variant="h6" align="right">
|
|
|
{`${firstLetter(name)}${slicedWord(name, 15, 1)}
|
|
|
${firstLetter(lastName)}${slicedWord(lastName, 15, 1)}`}
|
|
|
</Typography>
|
|
|
<div className={classes.wrapperInner}>
|
|
|
- {fullType === null &&<CopyToClipboard onCopy={() => copied('Message')} text={message}>
|
|
|
+ {fullType === null &&<CopyToClipboard onCopy={() => copied('Message')} text={`Message: ${message} , Caption: ${caption}`}>
|
|
|
<ContentCopyIcon className={classes.folderIcon} fontSize='large'/>
|
|
|
</CopyToClipboard>}
|
|
|
{fullType&&fullType.includes('audio') &&<LibraryMusicIcon onClick={handleClickIcon}
|
|
@@ -346,16 +280,21 @@ const MessageLeftForward = ({url,message,name,lastName,forwardName,forwardLastNa
|
|
|
className={classes.folderIcon} fontSize='large' />}
|
|
|
{fullType && fullType.includes('application') && <FolderIcon onClick={handleClickIcon}
|
|
|
className={classes.folderIcon} fontSize='large' />}
|
|
|
- <div className={classes.forwardColumn}></div>
|
|
|
- <div className={selected?classes.messageActive:classes.message}>
|
|
|
- <ListItemText style={{width:'100%'}} primary={`Forwarded from ${firstLetter(forwardName)}${slicedWord(forwardName, 15, 1)}
|
|
|
- ${firstLetter(forwardLastName)}${slicedWord(forwardLastName, 15, 1)}`}
|
|
|
- primaryTypographyProps={{color: "#00b333"}}
|
|
|
- secondary={message} secondaryTypographyProps={{ color: "#0e0d0d" }}/>
|
|
|
- {caption&&<ListItemText style={{width:'100%'}} primary='Caption' primaryTypographyProps={{color: "#00b333"}}
|
|
|
- secondary={caption} secondaryTypographyProps={{ color: "#0e0d0d" }} />}
|
|
|
+ <div className={classes.column}></div>
|
|
|
+ <div className={classes.wrapperInnerMessage} onClick={() => handleScrollToTheChat('oldId')}>
|
|
|
+ <Typography style={{color: "#26afee"}} variant="h6" align="right">
|
|
|
+ {`Forwarded from ${firstLetter(forwardName)}${slicedWord(forwardName, 15, 1)}
|
|
|
+ ${firstLetter(forwardLastName)}${slicedWord(forwardLastName, 15, 1)}`}
|
|
|
+ </Typography>
|
|
|
+ <ListItemText primary={message} primaryTypographyProps={{ color: "#000000" }}
|
|
|
+ secondary={caption} secondaryTypographyProps={{color: "#7a7a7a"}}/>
|
|
|
+ {/* <ListItemText primary={caption} primaryTypographyProps={{color: "#7a7a7a"}}/> */}
|
|
|
</div>
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
+ <ListItemText primary={message} primaryTypographyProps={{ color: "#000000" }}
|
|
|
+ secondary={caption} secondaryTypographyProps={{color: "#7a7a7a"}}/>
|
|
|
+ {/* <ListItemText primary={message} primaryTypographyProps={{ color: "#000000" }} />
|
|
|
+ <ListItemText primary={caption} primaryTypographyProps={{color: "#7a7a7a"}}/> */}
|
|
|
<div className={classes.time}>{timeStampMessage(createdAt)}</div>
|
|
|
{emojiCompanion && <div className={classes.emojiCompanionTitle}>{emojisArr[Number(emojiCompanion)]}</div>}
|
|
|
{emoji && <div className={classes.emojiTitle}>{emojisArr[Number(emoji)]}</div>}
|
|
@@ -382,7 +321,7 @@ const MessageLeftForward = ({url,message,name,lastName,forwardName,forwardLastNa
|
|
|
<ReplyIcon style={{transform :'rotateY(180deg)'}} />
|
|
|
Forward
|
|
|
</MenuItem>
|
|
|
- <CopyToClipboard onCopy={() => handleClose('copy')} text={message}>
|
|
|
+ <CopyToClipboard onCopy={() => handleClose('copy')} text={`Message: ${message} , Caption: ${caption}`}>
|
|
|
<MenuItem>
|
|
|
<ContentCopyIcon />
|
|
|
Copy Text
|