1
0
mirror of https://github.com/TeamPiped/Piped.git synced 2025-01-08 18:40:28 +05:30

feat: show full upload date string on hover where possible

This commit is contained in:
Bnyro 2025-01-07 13:35:51 +01:00
parent c2fa0045ad
commit 56bcc1b90f
3 changed files with 7 additions and 3 deletions

View File

@ -93,7 +93,6 @@ export default {
},
methods: {
async loadReplies() {
console.log(this.uploaderAvatarUrl);
if (!this.showingReplies && this.loadingReplies) {
this.showingReplies = true;
return;

View File

@ -87,7 +87,12 @@
<i class="i-fa6-solid:eye" />
<span class="pl-1" v-text="`${numberFormat(item.views)} `" />
</span>
<span v-if="item.uploaded > 0" class="pl-0.5" v-text="timeAgo(item.uploaded)" />
<span
v-if="item.uploaded > 0"
class="pl-0.5"
:title="new Date(item.uploaded).toLocaleString()"
v-text="timeAgo(item.uploaded)"
/>
<span v-else-if="item.uploadedDate" class="pl-0.5" v-text="item.uploadedDate" />
</div>
</div>

View File

@ -47,7 +47,7 @@
<div class="flex flex-auto gap-2">
<span v-t="{ path: 'video.views', args: { views: addCommas(video.views) } }" />
<span> | </span>
<span v-text="uploadDate" />
<span :title="new Date(video.uploadDate).toLocaleString()" v-text="uploadDate" />
</div>
<!-- Likes/dilikes -->
<div class="flex gap-2">