Skip to content

Commit

Permalink
Separator between multiple series
Browse files Browse the repository at this point in the history
If a book is part of multiple series, this patch adds a separator
between the series on the library item details page. With no separator,
it is not immediately clear that they are separate series.
  • Loading branch information
lkiesow committed Apr 4, 2024
1 parent c5785e9 commit f56d9f1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client/pages/item/_id/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@

<p v-if="bookSubtitle" class="text-gray-200 text-xl md:text-2xl">{{ bookSubtitle }}</p>

<nuxt-link v-for="_series in seriesList" :key="_series.id" :to="`/library/${libraryId}/series/${_series.id}`" class="hover:underline font-sans text-gray-300 text-lg leading-7"> {{ _series.text }}</nuxt-link>
<nuxt-link v-for="(_series, index) in seriesList" :key="_series.id" :to="`/library/${libraryId}/series/${_series.id}`" class="hover:underline font-sans text-gray-300 text-lg leading-7">
{{ _series.text
}}<span v-if="index < seriesList.length - 1">, </span>
</nuxt-link>

<template v-if="!isVideo">
<p v-if="isPodcast" class="mb-2 mt-0.5 text-gray-200 text-lg md:text-xl">by {{ podcastAuthor || 'Unknown' }}</p>
Expand Down

0 comments on commit f56d9f1

Please sign in to comment.