use the correct like icon/boldness when not the current user liked it (#15409)

This commit is contained in:
negue
2025-03-25 18:12:44 +01:00
committed by GitHub
parent 9693ad321c
commit ded71b46c5

View File

@@ -15,7 +15,7 @@
<div
class="svg-icon mr-1"
:title="$t('liked')"
v-html="icons.liked"
v-html="likedIcon"
></div>
+{{ likeCount }}
</div>
@@ -47,7 +47,7 @@
width: 16px;
}
&.isLiked {
&.isLiked.currentUserLiked {
color: $purple-200;
font-weight: bold;
@@ -95,7 +95,11 @@ export default {
}),
};
},
computed: {
likedIcon () {
return this.likedByCurrentUser ? this.icons.liked : this.icons.like;
},
},
methods: {
async like () {
this.$emit('toggle-like');