next style change, remove console log

This commit is contained in:
HF 2022-02-09 21:37:50 +01:00
parent 6bcc8ab537
commit cad78f5d7b
3 changed files with 39 additions and 41 deletions

View File

@ -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';
}}
/>
&nbsp;
<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';
}}
/>
&nbsp;
<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>
:&nbsp;
<span className="chatts">
{getDateTimeString(ts)}
</span>
</>
)
}
</div>
</div>
)}
<div className={className}>
<MarkdownParagraph pArray={pArray} />
</div>

View File

@ -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);
}

View File

@ -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;