Show progress on grid, change separator for progress

This commit is contained in:
Jackson Harper 2023-08-01 20:45:15 +08:00
parent ef840bd2a7
commit 26bfbedcb9

View file

@ -134,17 +134,17 @@ export function LibraryItemMetadata(
Math.round((props.item.wordsCount ?? 0) / 235)
)} min read`
: null}
{highlightCount > 0
? `${highlightCount} highlight${highlightCount > 1 ? 's' : ''}`
: null}
{(props.showProgress && props.item.readingProgressPercent) ?? 0 > 0 ? (
<>
{``}
{` | `}
<SpanBox css={{ color: '#55B938' }}>
{`${Math.round(props.item.readingProgressPercent)}%`}
</SpanBox>
</>
) : null}
{highlightCount > 0
? `${highlightCount} highlight${highlightCount > 1 ? 's' : ''}`
: null}
</Box>
)
}