feat: add navigation to book reader from series page - Add book click handler in PaginatedBookGrid - Simplify BookGrid component with direct navigation - Keep book status and metadata display - Ensure consistent navigation behavior across the app

This commit is contained in:
Julien Froidefond
2025-02-11 23:03:06 +01:00
parent ba12c87e57
commit 89a3491b0f
6 changed files with 194 additions and 120 deletions

View File

@@ -89,9 +89,18 @@ function MediaCard({ item, onClick }: MediaCardProps) {
? item.metadata.title
: item.metadata.title || `Tome ${item.metadata.number}`;
const handleClick = () => {
console.log("MediaCard - handleClick:", {
itemType: isSeries ? "series" : "book",
itemId: item.id,
itemTitle: title,
});
onClick?.();
};
return (
<button
onClick={onClick}
onClick={handleClick}
className="flex-shrink-0 w-[200px] group relative flex flex-col rounded-lg border bg-card text-card-foreground shadow-sm hover:bg-accent hover:text-accent-foreground transition-colors overflow-hidden"
>
{/* Image de couverture */}