From 07f0e49a7dbe82ef7f4c195e1423f0e5fa66496c Mon Sep 17 00:00:00 2001 From: jpirnay Date: Sun, 5 Apr 2026 22:50:22 +0200 Subject: [PATCH] Fix size mismatch preventing thumbnail display --- src/components/themes/lyra/Lyra3CoversTheme.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/themes/lyra/Lyra3CoversTheme.cpp b/src/components/themes/lyra/Lyra3CoversTheme.cpp index 5e568174..4d9f403e 100644 --- a/src/components/themes/lyra/Lyra3CoversTheme.cpp +++ b/src/components/themes/lyra/Lyra3CoversTheme.cpp @@ -16,6 +16,7 @@ namespace { constexpr int hPaddingInSelection = 8; constexpr int cornerRadius = 6; +constexpr int coverHeightOffset = 58; } // namespace void Lyra3CoversTheme::drawRecentBookCover(GfxRenderer& renderer, Rect rect, const std::vector& recentBooks, @@ -23,8 +24,7 @@ void Lyra3CoversTheme::drawRecentBookCover(GfxRenderer& renderer, Rect rect, con bool& bufferRestored, std::function storeCoverBuffer) const { const int tileWidth = (rect.width - 2 * Lyra3CoversMetrics::values.contentSidePadding) / 3; const int tileY = rect.y; - const int titleAreaHeight = renderer.getLineHeight(SMALL_FONT_ID) * 3 + hPaddingInSelection + 5; - const int coverHeight = std::max(120, rect.height - titleAreaHeight); + const int coverHeight = std::max(120, rect.height - coverHeightOffset); const bool hasContinueReading = !recentBooks.empty(); // Draw book card regardless, fill with message based on `hasContinueReading`