fix(webui): series name not showing on card if it starts with '<'

Closes: #930
This commit is contained in:
Gauthier Roebroeck 2022-07-25 10:30:27 +08:00
parent c55d720c13
commit 599b605d92

View file

@ -102,13 +102,14 @@
<!-- Description--> <!-- Description-->
<template v-if="!thumbnailOnly"> <template v-if="!thumbnailOnly">
<router-link v-if="!Array.isArray(title)" :to="title.to" class="link-underline" @click.native="$event.stopImmediatePropagation()"> <router-link v-if="!Array.isArray(title)" :to="title.to" class="link-underline"
@click.native="$event.stopImmediatePropagation()">
<v-card-subtitle <v-card-subtitle
v-line-clamp="2" v-line-clamp="2"
v-bind="subtitleProps" v-bind="subtitleProps"
v-html="title.title"
:title="title.title" :title="title.title"
/> >{{ title.title }}
</v-card-subtitle>
</router-link> </router-link>
<template v-if="Array.isArray(title)"> <template v-if="Array.isArray(title)">
<v-card-subtitle <v-card-subtitle
@ -120,11 +121,11 @@
:to="t.to" :to="t.to"
@click.native="$event.stopImmediatePropagation()" @click.native="$event.stopImmediatePropagation()"
class="link-underline text-truncate" class="link-underline text-truncate"
v-html="t.title"
:title="t.title" :title="t.title"
style="display: block" style="display: block"
:class="i !== 0 ? 'font-weight-light' : ''" :class="i !== 0 ? 'font-weight-light' : ''"
/> >{{ t.title }}
</router-link>
</v-card-subtitle> </v-card-subtitle>
</template> </template>
<v-card-text class="px-2 font-weight-light" v-html="body"> <v-card-text class="px-2 font-weight-light" v-html="body">