feat: use `<time>` element

pull/97/head
Daniel Roe 2022-11-25 15:00:50 +00:00
rodzic c8c4972693
commit ae2ce85bcc
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 22D5008E4F5D9B55
2 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -17,6 +17,6 @@ const buildTimeAgo = useTimeAgo(buildTime)
</div>
<a cursor-pointer hover:underline @click="openPreviewHelp">Show intro</a>
<div>A Mastodon client made with 💛</div>
<div>Built <span :title="buildTime">{{ buildTimeAgo }}</span> · <a href="https://github.com/elk-zone/elk" target="_blank">GitHub</a></div>
<div>Built <time :datetime="buildTime" :title="buildTime">{{ buildTimeAgo }}</time> · <a href="https://github.com/elk-zone/elk" target="_blank">GitHub</a></div>
</div>
</template>

Wyświetl plik

@ -83,9 +83,9 @@ const timeago = useTimeAgo(() => status.createdAt, {
<StatusAccountDetails :account="status.account" />
<div flex-auto />
<CommonTooltip :content="createdAt">
<div text-sm op50 hover:underline :title="status.createdAt">
<time text-sm op50 hover:underline :title="status.createdAt" :datetime="status.createdAt">
{{ timeago }}
</div>
</time>
</CommonTooltip>
</div>
<StatusReplyingTo v-if="status.inReplyToAccountId" :status="status" pt1 />