feat: Reset song count indicator when switching playlists - Show '0 of 0 songs • Switching playlist...' during playlist switch - Provides consistent visual feedback across all UI elements - Makes playlist switching feel even more responsive and clear
This commit is contained in:
parent
491235af29
commit
90bcd10ed9
@ -338,11 +338,22 @@ export const PaginatedSongList: React.FC<PaginatedSongListProps> = memo(({
|
||||
: `Selected ${selectedSongs.size} song${selectedSongs.size === 1 ? '' : 's'}`}
|
||||
</Checkbox>
|
||||
<Text color="gray.400" fontSize="sm">
|
||||
{songs.length} of {totalSongs} songs • {totalDuration}
|
||||
{hasMore && songs.length > 0 && (
|
||||
<Text as="span" color="blue.400" ml={2}>
|
||||
• Scroll for more
|
||||
</Text>
|
||||
{isSwitchingPlaylist ? (
|
||||
<>
|
||||
0 of 0 songs •
|
||||
<Text as="span" color="blue.400" ml={1}>
|
||||
Switching playlist...
|
||||
</Text>
|
||||
</>
|
||||
) : (
|
||||
<>
|
||||
{songs.length} of {totalSongs} songs • {totalDuration}
|
||||
{hasMore && songs.length > 0 && (
|
||||
<Text as="span" color="blue.400" ml={2}>
|
||||
• Scroll for more
|
||||
</Text>
|
||||
)}
|
||||
</>
|
||||
)}
|
||||
</Text>
|
||||
</HStack>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user