optimize library headers (#1374)

This commit is contained in:
jeffvli
2025-12-14 02:33:19 -08:00
parent 4cc51c3700
commit b4b106222e
15 changed files with 247 additions and 155 deletions
@@ -368,8 +368,10 @@ export const AlbumDetailContent = () => {
<div className={styles.contentContainer} ref={ref}>
<div className={styles.detailContainer}>
{comment && (
<Spoiler hideLabel={true} maxHeight={32} showLabel={true}>
{replaceURLWithHTMLLinks(comment)}
<Spoiler maxHeight={75}>
<Text
dangerouslySetInnerHTML={{ __html: replaceURLWithHTMLLinks(comment) }}
/>
</Spoiler>
)}
<div className={styles.contentLayout}>
@@ -89,7 +89,7 @@ export const AlbumDetailHeader = forwardRef<HTMLDivElement>((_props, ref) => {
item={{ route: AppRoute.LIBRARY_ALBUMS, type: LibraryItem.ALBUM }}
title={detailQuery?.data?.name || ''}
>
<Stack gap="xl" w="100%">
<Stack gap="md" w="100%">
{(firstAlbumArtist || releaseYear) && (
<Group className={styles.metadataGroup}>
{firstAlbumArtist && (
@@ -121,7 +121,7 @@ export const AlbumDetailHeader = forwardRef<HTMLDivElement>((_props, ref) => {
favorite={detailQuery?.data?.userFavorite}
onFavorite={handleFavorite}
onMore={handleMoreOptions}
onPlay={() => handlePlay(Play.NOW)}
onPlay={(type) => handlePlay(type)}
onRating={handleUpdateRating}
onShuffle={() => handlePlay(Play.SHUFFLE)}
rating={detailQuery?.data?.userRating || 0}