1
0
mirror of https://github.com/spacebarchat/client.git synced 2024-11-22 02:12:38 +01:00

add missing tooltip placement on message timestamp

This commit is contained in:
Puyodead1 2023-09-25 10:41:54 -04:00
parent 0b756e4023
commit 11f93c3ad2
No known key found for this signature in database
GPG Key ID: A4FA4FEC0DD353FC

View File

@ -121,13 +121,13 @@ export const MessageDetails = observer(({ message, position }: { message: Messag
return (
<DetailBase>
<Tooltip title={dayjs(message.timestamp).format("dddd, MMMM MM, h:mm A")}>
<Tooltip title={dayjs(message.timestamp).format("dddd, MMMM MM, h:mm A")} placement="top">
<time className="copyTime" dateTime={message.timestamp.toISOString()}>
{dayjs(message.timestamp).calendar(undefined, calendarStrings)}
</time>
</Tooltip>
{message instanceof Message && message.edited_timestamp && (
<Tooltip title={dayjs(message.edited_timestamp).format("dddd, MMMM MM, h:mm A")}>
<Tooltip title={dayjs(message.edited_timestamp).format("dddd, MMMM MM, h:mm A")} placement="top">
<span className="edited">(edited)</span>
</Tooltip>
)}