mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 04:20:12 +02:00
fix links in album description
This commit is contained in:
@@ -372,9 +372,7 @@ export const AlbumDetailContent = () => {
|
||||
<div className={styles.detailContainer}>
|
||||
{comment && (
|
||||
<Spoiler maxHeight={75}>
|
||||
<Text
|
||||
dangerouslySetInnerHTML={{ __html: replaceURLWithHTMLLinks(comment) }}
|
||||
/>
|
||||
<Text pb="md">{replaceURLWithHTMLLinks(comment)}</Text>
|
||||
</Spoiler>
|
||||
)}
|
||||
<div className={styles.contentLayout}>
|
||||
|
||||
@@ -212,11 +212,7 @@ const DummyAlbumDetailRoute = () => {
|
||||
{comment && (
|
||||
<section>
|
||||
<Spoiler maxHeight={75}>
|
||||
<Text
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: replaceURLWithHTMLLinks(comment),
|
||||
}}
|
||||
/>
|
||||
<Text pb="md">{replaceURLWithHTMLLinks(comment)}</Text>
|
||||
</Spoiler>
|
||||
</section>
|
||||
)}
|
||||
|
||||
@@ -98,7 +98,11 @@ const formatArtists = (artists: null | RelatedArtist[] | undefined) =>
|
||||
));
|
||||
|
||||
const formatComment = (item: Album | Song) =>
|
||||
item.comment ? <Spoiler maxHeight={50}>{replaceURLWithHTMLLinks(item.comment)}</Spoiler> : null;
|
||||
item.comment ? (
|
||||
<Spoiler maxHeight={50}>
|
||||
<Text>{replaceURLWithHTMLLinks(item.comment)}</Text>
|
||||
</Spoiler>
|
||||
) : null;
|
||||
|
||||
const FormatGenre = (item: Album | AlbumArtist | Playlist | Song) => {
|
||||
if (!item.genres?.length) {
|
||||
|
||||
Reference in New Issue
Block a user