mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-08 01:45:28 +00:00
Fixed edited tag
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user