From 3d7340ca6f9944e4989151258048658aa6a2ceee Mon Sep 17 00:00:00 2001 From: cottongin Date: Tue, 17 Feb 2026 03:53:31 -0500 Subject: [PATCH] fix: add bottom padding to home screen book card highlight The selection highlight had uniform padding on the top, left, and right but none on the bottom, causing descenders in the author text to clip past the highlight edge. Co-authored-by: Cursor --- src/components/themes/lyra/LyraTheme.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/themes/lyra/LyraTheme.cpp b/src/components/themes/lyra/LyraTheme.cpp index 5ad7a41a..51471ef7 100644 --- a/src/components/themes/lyra/LyraTheme.cpp +++ b/src/components/themes/lyra/LyraTheme.cpp @@ -454,7 +454,7 @@ void LyraTheme::drawRecentBookCover(GfxRenderer& renderer, Rect rect, const std: cardWidth - hPaddingInSelection * 2 - coverSlotWidth, coverHeight, Color::LightGray); // Bottom strip (below cover, full width) const int bottomY = tileY + hPaddingInSelection + coverHeight; - const int bottomH = tileHeight - hPaddingInSelection - coverHeight; + const int bottomH = tileHeight - hPaddingInSelection * 2 - coverHeight; if (bottomH > 0) { renderer.fillRoundedRect(cardX, bottomY, cardWidth, bottomH, cornerRadius, false, false, true, true, Color::LightGray); @@ -481,7 +481,7 @@ void LyraTheme::drawRecentBookCover(GfxRenderer& renderer, Rect rect, const std: // ===== MULTI BOOK: TILE LAYOUT (2-3 books) ===== const int tileWidth = (rect.width - 2 * LyraMetrics::values.contentSidePadding) / bookCount; // Bottom section height: everything below cover + top padding - const int bottomSectionHeight = tileHeight - coverHeight - hPaddingInSelection; + const int bottomSectionHeight = tileHeight - coverHeight - hPaddingInSelection * 2; // Render covers (first render only) if (!coverRendered) {