mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-10 01:03:36 -05:00
Fixed edited tag
This commit is contained in:
parent
f403875ae6
commit
68d58ed081
1 changed files with 13 additions and 1 deletions
|
@ -161,6 +161,10 @@ export const MessageInfo = styled.div`
|
|||
color: var(--tertiary-foreground);
|
||||
}
|
||||
}
|
||||
|
||||
.header {
|
||||
cursor: pointer;
|
||||
}
|
||||
`;
|
||||
|
||||
export const MessageContent = styled.div`
|
||||
|
@ -178,6 +182,14 @@ export const DetailBase = styled.div`
|
|||
font-size: 10px;
|
||||
display: inline-flex;
|
||||
color: var(--tertiary-foreground);
|
||||
|
||||
.edited {
|
||||
cursor: default;
|
||||
&::selection {
|
||||
background-color: transparent;
|
||||
color: var(--tertiary-foreground);
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export function MessageDetail({
|
||||
|
@ -227,7 +239,7 @@ export function MessageDetail({
|
|||
<time>{dayjs(decodeTime(message._id)).calendar()}</time>
|
||||
{message.edited && (
|
||||
<Tooltip content={dayjs(message.edited).format("LLLL")}>
|
||||
<Text id="app.main.channel.edited" />
|
||||
<span className="edited"><Text id="app.main.channel.edited" /></span>
|
||||
</Tooltip>
|
||||
)}
|
||||
</DetailBase>
|
||||
|
|
Loading…
Reference in a new issue