From 7f0343fcfa68df7fb4e9bf5968135a636a0710f7 Mon Sep 17 00:00:00 2001 From: Shusui MOYATANI Date: Sun, 18 Jun 2023 09:17:21 +0900 Subject: [PATCH] feat: add title for createdAt --- src/components/Post.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/Post.tsx b/src/components/Post.tsx index 0f1b496..181969c 100644 --- a/src/components/Post.tsx +++ b/src/components/Post.tsx @@ -21,6 +21,7 @@ const Post: Component = (props) => { const [showOverflow, setShowOverflow] = createSignal(); const createdAt = () => formatDate(props.createdAt); + const createdAtFull = () => props.createdAt.toLocaleString(); const { profile: author } = useProfile(() => ({ pubkey: props.authorPubkey, @@ -76,6 +77,7 @@ const Post: Component = (props) => { ev.preventDefault(); props.onShowEvent?.(); }} + title={createdAtFull()} > {createdAt()}