Handle line breaks in tracker search entry summaries
This commit is contained in:
@@ -67,7 +67,7 @@ const TrackerMangaCardSummary = ({ summary }: { summary: string }) => {
|
||||
<>
|
||||
{summary.length && (
|
||||
<Collapse collapsedSize={summaryCollapsedSize} in={isSummaryExpanded}>
|
||||
<Typography ref={summaryRef} variant="body1" component="p">
|
||||
<Typography ref={summaryRef} variant="body1" component="p" sx={{ whiteSpace: 'pre-line' }}>
|
||||
{parseHtml(sanitizeHtml(summary, { disallowedTagsMode: 'escape' }))}
|
||||
</Typography>
|
||||
</Collapse>
|
||||
|
||||
Reference in New Issue
Block a user