fix: only show reading progress bar in compact view when there is actual progress

- Add conditional rendering for ReadingProgressBar in CompactView
- Only display progress bar when readingProgress > 0
- Remove empty progress bar separator from compact list view
- Maintain clean, minimal compact view without unnecessary visual elements
- Keep progress bar functionality for cards with actual reading progress
This commit is contained in:
Gigi
2025-10-25 01:52:57 +02:00
parent 78bc1f46dd
commit e3cd4454b4

View File

@@ -80,12 +80,14 @@ export const CompactView: React.FC<CompactViewProps> = ({
{/* CTA removed */}
</div>
{/* Reading progress indicator for all bookmark types - always shown */}
<ReadingProgressBar
readingProgress={readingProgress}
height={1}
marginLeft="1.5rem"
/>
{/* Reading progress indicator - only show when there's actual progress */}
{readingProgress && readingProgress > 0 && (
<ReadingProgressBar
readingProgress={readingProgress}
height={1}
marginLeft="1.5rem"
/>
)}
</div>
)
}