Fixed edited tag

This commit is contained in:
nizune 2021-07-09 23:44:15 +02:00
parent f403875ae6
commit 68d58ed081

View file

@ -161,6 +161,10 @@ export const MessageInfo = styled.div`
color: var(--tertiary-foreground); color: var(--tertiary-foreground);
} }
} }
.header {
cursor: pointer;
}
`; `;
export const MessageContent = styled.div` export const MessageContent = styled.div`
@ -178,6 +182,14 @@ export const DetailBase = styled.div`
font-size: 10px; font-size: 10px;
display: inline-flex; display: inline-flex;
color: var(--tertiary-foreground); color: var(--tertiary-foreground);
.edited {
cursor: default;
&::selection {
background-color: transparent;
color: var(--tertiary-foreground);
}
}
`; `;
export function MessageDetail({ export function MessageDetail({
@ -227,7 +239,7 @@ export function MessageDetail({
<time>{dayjs(decodeTime(message._id)).calendar()}</time> <time>{dayjs(decodeTime(message._id)).calendar()}</time>
{message.edited && ( {message.edited && (
<Tooltip content={dayjs(message.edited).format("LLLL")}> <Tooltip content={dayjs(message.edited).format("LLLL")}>
<Text id="app.main.channel.edited" /> <span className="edited"><Text id="app.main.channel.edited" /></span>
</Tooltip> </Tooltip>
)} )}
</DetailBase> </DetailBase>