Skip to content

Commit

Permalink
fix(webui): series name not showing on card if it starts with '<'
Browse files Browse the repository at this point in the history
Closes: #930
  • Loading branch information
gotson committed Jul 25, 2022
1 parent c55d720 commit 599b605
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions komga-webui/src/components/ItemCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,14 @@

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

0 comments on commit 599b605

Please sign in to comment.