Merge pull request #3620 from Bnyro/master

feat: show tooltips when creator replied / liked comment
This commit is contained in:
Bnyro 2024-05-16 17:04:35 +02:00 committed by GitHub
commit ba4e946dc2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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}",