Skip to content

Commit 8cf1dd2

Browse files
committed
feat: book action buttons are more obvious
1 parent 7d1147c commit 8cf1dd2

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/components/atoms/BookAsCover.svelte

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import { type LibraryBook } from "../../bindings";
33
import { libraryClientStore } from "../../stores/library";
44
import { openBookInDefaultApp, sendToDevice, shortenToChars } from "./BookAsCover";
5+
import { Button } from "$lib/components/ui/button";
56
67
export let dragHandler: (event: DragEvent, book: LibraryBook) => void;
78
export let onClickHandler: () => void;
@@ -38,13 +39,13 @@
3839
</div>
3940
{:else}
4041
<div class="controls">
41-
<a href="/books/{book.id}"><button>Edit</button></a>
42-
<button on:click={() => openBookInDefaultApp(book)}>Read ↗</button>
43-
<button disabled>Info</button>
44-
<button on:click={() => (isSendingToDevice = true)}>Send</button>
45-
<button disabled>Convert</button>
42+
<a href="/books/{book.id}"><Button>Edit</Button></a>
43+
<Button on:click={() => openBookInDefaultApp(book)}>Read ↗</Button>
44+
<Button disabled>Info</Button>
45+
<Button on:click={() => (isSendingToDevice = true)}>Send</Button>
46+
<Button disabled>Convert</Button>
4647
<hr />
47-
<button disabled>Delete</button>
48+
<Button disabled>Delete</Button>
4849
</div>
4950
{/if}
5051
{:else}

src/components/molecules/CoverView.svelte

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<script lang="ts">
22
import type { LibraryBook } from "../../bindings";
33
import BookAsCover from "../atoms/BookAsCover.svelte";
4-
import { Grid } from "svelte-virtual";
54
import { onMount, onDestroy } from "svelte";
65
import { writable } from "svelte/store";
76

0 commit comments

Comments
 (0)