2021-10-09 18:09:06 +02:00
|
|
|
<template>
|
|
|
|
<div class="flex h-full px-1 overflow-hidden">
|
2021-12-03 02:02:38 +01:00
|
|
|
<covers-group-cover :name="series" :book-items="bookItems" :width="60" :height="60" :book-cover-aspect-ratio="bookCoverAspectRatio" />
|
2021-10-09 18:09:06 +02:00
|
|
|
<div class="flex-grow px-2 seriesSearchCardContent h-full">
|
|
|
|
<p class="truncate text-sm">{{ series }}</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
props: {
|
|
|
|
series: String,
|
|
|
|
bookItems: {
|
|
|
|
type: Array,
|
|
|
|
default: () => []
|
|
|
|
}
|
|
|
|
},
|
|
|
|
data() {
|
|
|
|
return {}
|
|
|
|
},
|
2021-12-03 02:02:38 +01:00
|
|
|
computed: {
|
|
|
|
bookCoverAspectRatio() {
|
|
|
|
return this.$store.getters['getBookCoverAspectRatio']
|
|
|
|
}
|
|
|
|
},
|
2021-10-09 18:09:06 +02:00
|
|
|
methods: {},
|
|
|
|
mounted() {}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
.seriesSearchCardContent {
|
|
|
|
width: calc(100% - 80px);
|
|
|
|
height: 60px;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
</style>
|