mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-09-21 15:38:59 +03:00
patp name now has sigil, and nickname now renders inter
This commit is contained in:
parent
5bb0f5d59f
commit
a5301251c3
BIN
pkg/interface/chat/package-lock.json
generated
BIN
pkg/interface/chat/package-lock.json
generated
Binary file not shown.
@ -167,10 +167,10 @@ export class Message extends Component {
|
||||
let color = "#000000";
|
||||
if (contact) {
|
||||
name = (contact.nickname.length > 0)
|
||||
? contact.nickname : props.msg.author;
|
||||
? contact.nickname : "~" + props.msg.author;
|
||||
color = `#${uxToHex(contact.color)}`;
|
||||
}
|
||||
|
||||
console.log(name);
|
||||
}
|
||||
return (
|
||||
<div
|
||||
className={
|
||||
@ -189,7 +189,9 @@ export class Message extends Component {
|
||||
className="fr clamp-message white-d"
|
||||
style={{ flexGrow: 1, marginTop: -8 }}>
|
||||
<div className="hide-child" style={paddingTop}>
|
||||
<p className="v-mid mono f9 gray2 dib mr3">{name}</p>
|
||||
<p className="v-mid f9 gray2 dib mr3">
|
||||
<div className={contact.nickname ? null : "mono"}>{name}</div>
|
||||
</p>
|
||||
<p className="v-mid mono f9 gray2 dib">{timestamp}</p>
|
||||
<p className="v-mid mono f9 ml2 gray2 dib child dn-s">{datestamp}</p>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user