mirror of
https://github.com/dergigi/boris.git
synced 2026-02-09 17:14:58 +01:00
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:
@@ -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>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user