Fixed edited tag
parent
8ff92b9312
commit
2b9bbef6cb
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue