Skip to content

Commit

Permalink
fix: authors spacing on cards #95
Browse files Browse the repository at this point in the history
  • Loading branch information
bayang committed Jan 14, 2024
1 parent a02b7c2 commit 9634299
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/jelu-ui/src/components/BookCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -203,14 +203,18 @@ watch(checked, (newVal, oldVal) => {
</h2>
</router-link>
<div v-if="book.book.authors != null && book.book.authors.length > 0">
<router-link
<span
v-for="author in book.book.authors.slice(0,3)"
:key="author.id"
class="link hover:underline hover:decoration-4 hover:decoration-secondary line-clamp-2 inline-block"
:to="{ name: 'author-detail', params: { authorId: author.id } }"
>
{{ author.name }}
</router-link>
<router-link
class="link hover:underline hover:decoration-4 hover:decoration-secondary line-clamp-2 inline-block"
:to="{ name: 'author-detail', params: { authorId: author.id } }"
>
{{ author.name }}
</router-link>
<span>&nbsp;</span>
</span>
<span
v-if="book.book.authors.length > 3"
v-tooltip="authorsText"
Expand Down

0 comments on commit 9634299

Please sign in to comment.