feat: show tooltips when creator replied / liked comment

This commit is contained in:
Bnyro 2024-05-16 17:04:08 +02:00
parent 9762542596
commit ca5e39dfd8
2 changed files with 10 additions and 3 deletions

View File

@ -33,8 +33,13 @@
<div class="comment-footer my-1 flex items-center gap-3"> <div class="comment-footer my-1 flex items-center gap-3">
<div class="i-fa6-solid:thumbs-up" /> <div class="i-fa6-solid:thumbs-up" />
<span v-text="numberFormat(comment.likeCount)" /> <span v-text="numberFormat(comment.likeCount)" />
<i v-if="comment.hearted" class="i-fa6-solid:heart" /> <i v-if="comment.hearted" class="i-fa6-solid:heart" :title="$t('actions.creator_liked')" />
<img v-if="comment.creatorReplied" :src="uploaderAvatarUrl" class="h-5 w-5 rounded-full" /> <img
v-if="comment.creatorReplied"
:src="uploaderAvatarUrl"
class="h-5 w-5 rounded-full"
:title="$t('actions.creator_replied')"
/>
</div> </div>
<template v-if="comment.repliesPage && (!loadingReplies || !showingReplies)"> <template v-if="comment.repliesPage && (!loadingReplies || !showingReplies)">
<div class="cursor-pointer" @click="loadReplies"> <div class="cursor-pointer" @click="loadReplies">

View File

@ -156,7 +156,9 @@
"concurrent_prefetch_limit": "Concurrent Stream Prefetch Limit", "concurrent_prefetch_limit": "Concurrent Stream Prefetch Limit",
"customize": "Customize", "customize": "Customize",
"invalid_url": "Invalid URL!", "invalid_url": "Invalid URL!",
"add": "Add" "add": "Add",
"creator_replied": "Creator replied",
"creator_liked": "Creator liked"
}, },
"comment": { "comment": {
"pinned_by": "Pinned by {author}", "pinned_by": "Pinned by {author}",