mirror of
https://github.com/gotson/komga.git
synced 2025-12-22 00:13:30 +01:00
feat(browse book): add button to read book when hovering on thumbnail
related to #67
This commit is contained in:
parent
8fcbcfb23b
commit
c490e799ba
1 changed files with 25 additions and 5 deletions
|
|
@ -33,11 +33,31 @@
|
|||
<v-container fluid class="pa-6">
|
||||
<v-row>
|
||||
<v-col cols="4" sm="4" md="auto" lg="auto" xl="auto">
|
||||
<v-img :src="thumbnailUrl"
|
||||
lazy-src="../assets/cover.svg"
|
||||
max-height="300"
|
||||
max-width="212"
|
||||
/>
|
||||
<v-hover>
|
||||
<template v-slot:default="{ hover }">
|
||||
<v-img :src="thumbnailUrl"
|
||||
lazy-src="../assets/cover.svg"
|
||||
max-height="300"
|
||||
max-width="212"
|
||||
>
|
||||
<v-fade-transition>
|
||||
<v-overlay
|
||||
v-if="hover && book.media.status === 'READY'"
|
||||
absolute
|
||||
color="grey darken-4"
|
||||
>
|
||||
<v-btn fab
|
||||
x-large
|
||||
color="accent"
|
||||
:to="{name: 'read-book', params: { bookId: bookId}}"
|
||||
>
|
||||
<v-icon>mdi-book-open-page-variant</v-icon>
|
||||
</v-btn>
|
||||
</v-overlay>
|
||||
</v-fade-transition>
|
||||
</v-img>
|
||||
</template>
|
||||
</v-hover>
|
||||
|
||||
</v-col>
|
||||
<v-col cols="8" sm="8" md="auto" lg="auto" xl="auto">
|
||||
|
|
|
|||
Loading…
Reference in a new issue