Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
JorrinKievit committed Dec 22, 2024
1 parent e595a75 commit 694f553
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 79 deletions.
6 changes: 2 additions & 4 deletions src/components/books/book-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,9 @@ export function BookItemCard(props: BookItemProps) {
<div className="flex flex-col gap-4">
<div className="flex flex-col gap-2">
<h2 className="max-w-[90%] text-2xl font-bold">{props.title}</h2>
<p className="text-md dark:text-gray-400">By {props.authors}</p>
<p className="text-md dark:text-gray-400">By {props.author}</p>
</div>
<p className="line-clamp-3 break-all text-sm dark:text-gray-400">{props.description}</p>
<p className="text-sm dark:text-gray-400">{props.book_content}</p>
<p className="text-sm dark:text-gray-400">File size: {props.book_size}</p>
<p className="text-sm dark:text-gray-400">File type: {props.book_filetype}</p>
<p className="text-sm dark:text-gray-400">MD5: {props.md5}</p>
Expand Down Expand Up @@ -142,11 +141,10 @@ export function BookItemDialog(props: BookItemProps) {
<DialogContent>
<DialogHeader>
<DialogTitle>{props.title}</DialogTitle>
<DialogDescription>By {props.authors}</DialogDescription>
<DialogDescription>By {props.author}</DialogDescription>
</DialogHeader>
<ScrollArea className="max-h-[80vh]">
<div className="flex flex-col gap-4">
<p>{props.book_content}</p>
<p>File size: {props.book_size}</p>
<p>File type: {props.book_filetype}</p>
<p>MD5: {props.md5}</p>
Expand Down
44 changes: 0 additions & 44 deletions src/components/books/continue-reading.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion src/components/epub-reader/epub-reader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ export function EpubReader(props: EpubReaderProps) {
</div>
</div>
<div className="relative h-full">
{/* Hack to make swipe handlers work */}
{/* Hack to have swipe events for the iframe */}
<div {...handlers} className="absolute inset-0 z-10 bg-transparent" />
{loading && (
<div className="absolute inset-0 z-10 flex flex-col items-center justify-center bg-white bg-opacity-75 dark:bg-black dark:bg-opacity-75">
Expand Down
30 changes: 0 additions & 30 deletions src/pages/reader.tsx

This file was deleted.

0 comments on commit 694f553

Please sign in to comment.