feat: show full created time in tooltip

This commit is contained in:
三咲智子 2022-11-25 16:57:34 +08:00
parent ff81389404
commit 6c350faf7c
No known key found for this signature in database
GPG key ID: 69992F2250DFD93E
3 changed files with 16 additions and 5 deletions

View file

@ -36,6 +36,7 @@ function go() {
router.push(getStatusPath(status))
}
const createdAt = useFormattedDateTime(status.createdAt)
const timeago = useTimeAgo(() => status.createdAt, {
showSecond: true,
messages: {
@ -89,9 +90,11 @@ const timeago = useTimeAgo(() => status.createdAt, {
<div flex>
<StatusAccountDetails :account="status.account" />
<div flex-auto />
<div text-sm op50 :title="status.createdAt">
{{ timeago }}
</div>
<CommonTooltip :content="createdAt">
<div text-sm op50 :title="status.createdAt">
{{ timeago }}
</div>
</CommonTooltip>
</div>
<StatusReplyingTo v-if="status.inReplyToAccountId" :status="status" pt1 />
<div>