fix(homepage): faq not rendering links correctly

This commit is contained in:
limes.pink
2025-04-15 18:53:54 +02:00
parent e6af4df65d
commit 3afd5c5824

View File

@@ -1,4 +1,5 @@
<script lang="ts" setup>
/* eslint-disable vue/no-v-html -- we might wanna avoid this by rewriting the locales to use variables */
const { te, t, tm } = useI18n();
const nOfQAs = computed(() => tm<string>('faq.QAs') as string[]).value.length;
@@ -165,9 +166,10 @@ function titleSuffixHandler(path: string) {
<summary>
{{ $t(`faq.QAs[${i}].question`) }}
</summary>
<p class="text">
{{ $t(`faq.QAs[${i}].answer`) }}
</p>
<p
class="text"
v-html="$t(`faq.QAs[${i}].answer`)"
/>
</details>
</div>
@@ -180,9 +182,10 @@ function titleSuffixHandler(path: string) {
<summary>
{{ $t(`faq.QAs[${i}].question`) }}
</summary>
<p class="text">
{{ $t(`faq.QAs[${i}].answer`) }}
</p>
<p
class="text"
v-html="$t(`faq.QAs[${i}].answer`)"
/>
</details>
</div>
</div>
@@ -682,13 +685,13 @@ section.faq {
color: var(--text-shade-0);
}
.question-and-answer .text a {
.question-and-answer .text :deep(a) {
color: var(--accent-shade-1);
text-decoration: none;
font-weight: bold;
}
.question-and-answer .text a:hover {
.question-and-answer .text :deep(a):hover {
text-decoration: underline;
}