Removed entity name from tag photo description and appending it dynamically.

This commit is contained in:
DebaucheryLibrarian
2021-03-07 19:47:06 +01:00
parent de460f53b1
commit 44523609c1
4 changed files with 344 additions and 341 deletions

View File

@@ -12,7 +12,7 @@
v-if="!lazy && !sfw"
:src="`/img/${tag.poster.thumbnail}`"
:style="{ 'background-image': `url(/img/${tag.poster.lazy})` }"
:title="tag.poster.comment"
:title="comment"
:alt="tag.name"
class="poster"
>
@@ -30,7 +30,7 @@
v-if="lazy && !sfw"
:src="`/img/${tag.poster.thumbnail}`"
:style="{ 'background-image': `url(/img/${tag.poster.lazy})` }"
:title="tag.poster.comment"
:title="comment"
:alt="tag.name"
loading="lazy"
class="poster"
@@ -86,6 +86,11 @@ export default {
default: false,
},
},
data() {
return {
comment: this.tag.poster?.entity ? `${this.tag.poster.comment} for ${this.tag.poster.entity.name}` : this.tag.poster.comment,
};
},
computed: {
sfw,
},