From 4e5c9b788f06d94264bfa2b7e6a7d3914a7155d9 Mon Sep 17 00:00:00 2001 From: RHDev Date: Tue, 2 Sep 2025 12:13:10 -0500 Subject: [PATCH] Display book covers at full height (#266) # Why Book covers in the UI are currently cut off on the top and bottom, making it hard to see. # How doubled the height of the book cover image div so the covers are not cut off. I found that setting it to a specific size (rather than `h-full`) resulted in better handling of small images and made for a more consistent look. # Before Screenshot from 2025-09-02 11-44-49 Screenshot from 2025-09-02 11-45-06 # After Screenshot from 2025-09-02 11-41-41 Screenshot from 2025-09-02 11-44-38 --------- Co-authored-by: Ryan Hults --- static/js/main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/static/js/main.js b/static/js/main.js index 2f0882d..e3e411a 100644 --- a/static/js/main.js +++ b/static/js/main.js @@ -94,8 +94,8 @@ // ---- Cards ---- function renderCard(book) { - const cover = book.preview ? `Cover` : - `
No Cover
`; + const cover = book.preview ? `Cover` : + `
No Cover
`; const html = `
@@ -172,7 +172,7 @@ } }, tpl(book) { - const cover = book.preview ? `Cover` : ''; + const cover = book.preview ? `Cover` : ''; const infoList = book.info ? Object.entries(book.info).map(([k, v]) => `
  • ${utils.e(k)}: ${utils.e((v||[]).join ? v.join(', ') : v)}
  • `).join('') : ''; return `