mirror of
https://github.com/kilyabin/psysonic.git
synced 2026-07-22 06:25:41 +00:00
feat(ui): bulk entity ratings, Random Albums multi-select, album New badge (#446)
Add star rating rows to multi-artist and multi-album context menus so the selection shares one rating control (mixed ratings show empty until set; keyboard navigation supported). Pass selectedAlbums into AlbumCard on Random Albums so multi-select context menu works. Add i18n aria labels for bulk rating controls. Move the New album badge to the top-right of the cover and stack it with the offline badge to avoid overlap.
This commit is contained in:
@@ -83,14 +83,18 @@ function AlbumCard({ album, selected, selectionMode, onToggleSelect, showRating
|
||||
</svg>
|
||||
</div>
|
||||
)}
|
||||
{isOffline && !selectionMode && (
|
||||
<div className="album-card-offline-badge" aria-label="Offline available">
|
||||
<HardDriveDownload size={12} />
|
||||
</div>
|
||||
)}
|
||||
{isNewAlbum && (
|
||||
<div className="album-card-new-badge" aria-label={t('common.new', 'New')}>
|
||||
{t('common.new', 'New')}
|
||||
{(isNewAlbum || (isOffline && !selectionMode)) && (
|
||||
<div className="album-card-cover-badges-tr">
|
||||
{isNewAlbum && (
|
||||
<div className="album-card-new-badge" aria-label={t('common.new', 'New')}>
|
||||
{t('common.new', 'New')}
|
||||
</div>
|
||||
)}
|
||||
{isOffline && !selectionMode && (
|
||||
<div className="album-card-offline-badge" aria-label="Offline available">
|
||||
<HardDriveDownload size={12} />
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
)}
|
||||
{selectionMode && (
|
||||
|
||||
Reference in New Issue
Block a user