<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>
align-items: baseline;
& .message__profile {
- flex: 1;
min-width: 0;
color: var(--tc-surface-high);
margin-right: var(--sp-tight);
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);
}
}