show mxId on hover over displayname
This commit is contained in:
parent
717ffe560f
commit
c9b1a062ce
2 changed files with 10 additions and 1 deletions
|
@ -72,6 +72,7 @@ function MessageHeader({
|
|||
<div className="message__header">
|
||||
<div style={{ color }} className="message__profile">
|
||||
<Text variant="b1">{name}</Text>
|
||||
<Text variant="b1">{userId}</Text>
|
||||
</div>
|
||||
<div className="message__time">
|
||||
<Text variant="b3">{time}</Text>
|
||||
|
|
|
@ -104,7 +104,6 @@
|
|||
align-items: baseline;
|
||||
|
||||
& .message__profile {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
color: var(--tc-surface-high);
|
||||
margin-right: var(--sp-tight);
|
||||
|
@ -121,10 +120,19 @@
|
|||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
& > .text:last-child { display: none; }
|
||||
&:hover {
|
||||
& > .text:first-child { display: none; }
|
||||
& > .text:last-child { display: block; }
|
||||
}
|
||||
}
|
||||
|
||||
& .message__time {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
& > .text {
|
||||
white-space: nowrap;
|
||||
color: var(--tc-surface-low);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue