added chat message timestamp tooltips (title attr)
This commit is contained in:
@ -3,6 +3,7 @@ import { EventKind, NostrLink, TaggedNostrEvent } from "@snort/system";
|
||||
import React, { Suspense, lazy, useContext, useMemo, useRef, useState } from "react";
|
||||
import { useHover, useOnClickOutside } from "usehooks-ts";
|
||||
import { dedupe } from "@snort/shared";
|
||||
import dayjs from "dayjs";
|
||||
|
||||
const EmojiPicker = lazy(() => import("../emoji-picker"));
|
||||
import { Icon } from "../icon";
|
||||
@ -139,7 +140,9 @@ export function ChatMessage({
|
||||
}
|
||||
pubkey={ev.pubkey}
|
||||
/>{" "}
|
||||
<Text tags={ev.tags} content={ev.content} eventComponent={CollapsibleEvent} className="inline" />
|
||||
<span title={dayjs(ev.created_at * 1000).format('MMM D, h:mm A')}>
|
||||
<Text tags={ev.tags} content={ev.content} eventComponent={CollapsibleEvent} className="inline" />
|
||||
</span>
|
||||
{(hasReactions || hasZaps) && (
|
||||
<div className="flex gap-1 mt-1">
|
||||
{hasZaps && (
|
||||
|
Reference in New Issue
Block a user