Skip to content
Snippets Groups Projects
Commit 68d58ed0 authored by nizune's avatar nizune
Browse files

Fixed edited tag

parent f403875a
No related merge requests found
...@@ -161,6 +161,10 @@ export const MessageInfo = styled.div` ...@@ -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` ...@@ -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({ ...@@ -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>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment