add new spoiler component

This commit is contained in:
jeffvli
2025-12-05 01:35:54 -08:00
parent 40af5fb945
commit 83886ed4ba
3 changed files with 22 additions and 38 deletions
@@ -363,7 +363,11 @@ export const AlbumDetailContent = () => {
return (
<div className={styles.contentContainer} ref={ref}>
<div className={styles.detailContainer}>
{comment && <Spoiler maxHeight={75}>{replaceURLWithHTMLLinks(comment)}</Spoiler>}
{comment && (
<Spoiler hideLabel={true} maxHeight={32} showLabel={true}>
{replaceURLWithHTMLLinks(comment)}
</Spoiler>
)}
<div className={styles.contentLayout}>
<div className={styles.songsColumn}>
{detailQuery?.data?.songs && detailQuery.data.songs.length > 0 && (