mirror of
https://github.com/jeffvli/sonixd.git
synced 2026-05-18 22:03:12 -04:00
Normalize album view to new artist page changes
This commit is contained in:
@@ -279,7 +279,7 @@ export const FlatBackground = styled.div<{ $expanded: boolean; $color: string; $
|
||||
export const BlurredBackgroundWrapper = styled.div<{
|
||||
expanded: boolean;
|
||||
hasImage: boolean;
|
||||
$titleBar: string;
|
||||
$titleBar: boolean;
|
||||
}>`
|
||||
clip: rect(0, auto, auto, 0);
|
||||
-webkit-clip-path: inset(0 0);
|
||||
|
||||
@@ -61,6 +61,7 @@ import {
|
||||
import { apiController } from '../../api/controller';
|
||||
import { Artist, Genre, Server } from '../../types';
|
||||
import { setPlaylistRate } from '../../redux/playlistSlice';
|
||||
import Card from '../card/Card';
|
||||
|
||||
interface AlbumParams {
|
||||
id: string;
|
||||
@@ -314,9 +315,23 @@ const AlbumView = ({ ...rest }: any) => {
|
||||
<GenericPageHeader
|
||||
isDark={!rest.isModal}
|
||||
image={
|
||||
isCached(`${misc.imageCachePath}album_${albumId}.jpg`)
|
||||
? `${misc.imageCachePath}album_${albumId}.jpg`
|
||||
: data.image
|
||||
<Card
|
||||
title="None"
|
||||
subtitle=""
|
||||
coverArt={
|
||||
isCached(`${misc.imageCachePath}album_${albumId}.jpg`)
|
||||
? `${misc.imageCachePath}album_${albumId}.jpg`
|
||||
: data.image
|
||||
}
|
||||
size={200}
|
||||
hasHoverButtons
|
||||
noInfoPanel
|
||||
noModalButton
|
||||
details={data}
|
||||
playClick={{ type: 'album', id: data.id }}
|
||||
url={`/library/album/${data.id}`}
|
||||
handleFavorite={handleFavorite}
|
||||
/>
|
||||
}
|
||||
cacheImages={{
|
||||
enabled: settings.getSync('cacheImages'),
|
||||
@@ -463,17 +478,23 @@ const AlbumView = ({ ...rest }: any) => {
|
||||
</PageHeaderSubtitleDataLine>
|
||||
<div style={{ marginTop: '10px' }}>
|
||||
<ButtonToolbar>
|
||||
<PlayButton appearance="primary" size="lg" onClick={handlePlay} />
|
||||
<PlayButton appearance="primary" size="lg" $circle onClick={handlePlay} />
|
||||
<PlayAppendNextButton
|
||||
appearance="primary"
|
||||
appearance="subtle"
|
||||
size="lg"
|
||||
onClick={() => handlePlayAppend('next')}
|
||||
/>
|
||||
<PlayAppendButton
|
||||
appearance="primary"
|
||||
appearance="subtle"
|
||||
size="lg"
|
||||
onClick={() => handlePlayAppend('later')}
|
||||
/>
|
||||
<FavoriteButton
|
||||
size="lg"
|
||||
appearance="subtle"
|
||||
isFavorite={data.starred}
|
||||
onClick={handleFavorite}
|
||||
/>
|
||||
<Whisper
|
||||
trigger="hover"
|
||||
placement="bottom"
|
||||
@@ -493,9 +514,12 @@ const AlbumView = ({ ...rest }: any) => {
|
||||
</StyledPopover>
|
||||
}
|
||||
>
|
||||
<DownloadButton size="lg" downloadSize={getAlbumSize(data.song)} />
|
||||
<DownloadButton
|
||||
size="lg"
|
||||
appearance="subtle"
|
||||
downloadSize={getAlbumSize(data.song)}
|
||||
/>
|
||||
</Whisper>
|
||||
<FavoriteButton size="lg" isFavorite={data.starred} onClick={handleFavorite} />
|
||||
</ButtonToolbar>
|
||||
</div>
|
||||
</div>
|
||||
@@ -509,7 +533,6 @@ const AlbumView = ({ ...rest }: any) => {
|
||||
handleRowClick={handleRowClick}
|
||||
handleRowDoubleClick={handleRowDoubleClick}
|
||||
handleRating={handleRowRating}
|
||||
tableHeight={700}
|
||||
virtualized
|
||||
rowHeight={Number(settings.getSync('musicListRowHeight'))}
|
||||
fontSize={Number(settings.getSync('musicListFontSize'))}
|
||||
|
||||
Reference in New Issue
Block a user