From a310c1fe83b15df1c00d50389357f891e75d93fb Mon Sep 17 00:00:00 2001 From: ogerly Date: Sun, 22 Jan 2023 12:54:48 +0100 Subject: [PATCH] add category name in tooltip --- webapp/components/PostTeaser/PostTeaser.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/webapp/components/PostTeaser/PostTeaser.vue b/webapp/components/PostTeaser/PostTeaser.vue index 2bd63e6ed..c99e0dad2 100644 --- a/webapp/components/PostTeaser/PostTeaser.vue +++ b/webapp/components/PostTeaser/PostTeaser.vue @@ -30,7 +30,10 @@ v-for="category in post.categories" :key="category.id" v-tooltip="{ - content: $t(`contribution.category.description.${category.slug}`), + content: ` + ${$t(`contribution.category.name.${category.slug}`)}: + ${$t(`contribution.category.description.${category.slug}`)} + `, placement: 'bottom-start', }" :icon="category.icon"