next style change, remove console log
This commit is contained in:
parent
6bcc8ab537
commit
cad78f5d7b
|
@ -49,50 +49,47 @@ function ChatMessage({
|
|||
|
||||
return (
|
||||
<li className="chatmsg">
|
||||
<div className="chatname">
|
||||
{
|
||||
(!isInfo && !isEvent)
|
||||
{(!isInfo && !isEvent)
|
||||
&& (
|
||||
<>
|
||||
<img
|
||||
alt=""
|
||||
title={country}
|
||||
src={`${window.ssv.assetserver}/cf/${country}.gif`}
|
||||
onError={(e) => {
|
||||
e.target.onerror = null;
|
||||
e.target.src = './cf/xx.gif';
|
||||
}}
|
||||
/>
|
||||
|
||||
<span
|
||||
style={{
|
||||
color: setBrightness(colorFromText(name), isDarkMode),
|
||||
cursor: 'pointer',
|
||||
}}
|
||||
role="button"
|
||||
tabIndex={-1}
|
||||
onClick={(event) => {
|
||||
const {
|
||||
clientX,
|
||||
clientY,
|
||||
} = event;
|
||||
dispatch(showContextMenu('USER', clientX, clientY, {
|
||||
windowId,
|
||||
uid,
|
||||
name,
|
||||
}));
|
||||
}}
|
||||
>
|
||||
{name}
|
||||
<div className="chathead">
|
||||
<span className="chatname">
|
||||
<img
|
||||
alt=""
|
||||
title={country}
|
||||
src={`${window.ssv.assetserver}/cf/${country}.gif`}
|
||||
onError={(e) => {
|
||||
e.target.onerror = null;
|
||||
e.target.src = './cf/xx.gif';
|
||||
}}
|
||||
/>
|
||||
|
||||
<span
|
||||
style={{
|
||||
color: setBrightness(colorFromText(name), isDarkMode),
|
||||
cursor: 'pointer',
|
||||
}}
|
||||
role="button"
|
||||
tabIndex={-1}
|
||||
onClick={(event) => {
|
||||
const {
|
||||
clientX,
|
||||
clientY,
|
||||
} = event;
|
||||
dispatch(showContextMenu('USER', clientX, clientY, {
|
||||
windowId,
|
||||
uid,
|
||||
name,
|
||||
}));
|
||||
}}
|
||||
>
|
||||
{name}
|
||||
</span>:
|
||||
</span>
|
||||
:
|
||||
<span className="chatts">
|
||||
{getDateTimeString(ts)}
|
||||
</span>
|
||||
</>
|
||||
)
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
<div className={className}>
|
||||
<MarkdownParagraph pArray={pArray} />
|
||||
</div>
|
||||
|
|
|
@ -369,7 +369,6 @@ function parseOpts(inOpts) {
|
|||
export function parseParagraph(text, inOpts) {
|
||||
const opts = parseOpts(inOpts);
|
||||
const mText = new MString(text);
|
||||
console.log('parse', text);
|
||||
return parseMParagraph(mText, opts);
|
||||
}
|
||||
|
||||
|
|
|
@ -664,10 +664,12 @@ tr:nth-child(even) {
|
|||
height: 24px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.chathead {
|
||||
display: flex;
|
||||
}
|
||||
.chatname {
|
||||
font-size: 13px;
|
||||
white-space: nowrap;
|
||||
display: flex;
|
||||
}
|
||||
.chatts {
|
||||
color: #83839f;
|
||||
|
|
Loading…
Reference in New Issue
Block a user