From 845e3dcea3ae40470d96500a62f41d24284d0634 Mon Sep 17 00:00:00 2001 From: Rachel Stiansen Date: Thu, 17 Sep 2026 13:21:43 +0200 Subject: [PATCH] feat: improve book card layout consistency (#40) --- src/__snapshots__/App.test.tsx.snap | 75 +++++++------ src/components/BookCard.css | 101 +++++++++++++---- src/components/BookCard.test.tsx | 67 ++++++++++- src/components/BookCard.tsx | 81 ++++++++------ .../__snapshots__/BookCard.test.tsx.snap | 104 ++++++++++++------ 5 files changed, 304 insertions(+), 124 deletions(-) diff --git a/src/__snapshots__/App.test.tsx.snap b/src/__snapshots__/App.test.tsx.snap index 9ac41dc..20eeb61 100644 --- a/src/__snapshots__/App.test.tsx.snap +++ b/src/__snapshots__/App.test.tsx.snap @@ -119,37 +119,50 @@ exports[`App > matches the snapshot 1`] = `
-

- A Wizard of Earthsea -

-

- Ursula K. Le Guin -

-

- First published: - 1968 -

-

- Rating: - 4.8 - / 5 - (20 ratings) -

- + +
+
    +
  • + fantasy +
  • +
  • + magic +
  • +
+
+
- - )} - )} +
+ {(isSubjectsExpanded || remainingSubjectCount > 0) && ( + + )} +
+
{onFavoriteToggle && ( renders a complete book 1`] = `
-

- A Wizard of Earthsea -

-

- Ursula K. Le Guin, Another Author -

-

- First published: - 1968 -

-

+ A Wizard of Earthsea + +

+ Ursula K. Le Guin, Another Author +

+

+ First published: 1968 +

+

+ Rating: + 4.2 + / 5 + (100 ratings) +

+
+
- Rating: - 4.2 - / 5 - (100 ratings) -

-
    -
  • - Fantasy -
  • -
  • - Magic -
  • -
+
    +
  • + Fantasy +
  • +
  • + Magic +
  • +
+
+
@@ -67,14 +80,33 @@ exports[`BookCard > renders a placeholder for a minimal book 1`] = `
-

- Untitled Book -

-

- Unknown author -

+

+ Untitled Book +

+

+ Unknown author +

+

+

+
+