Fix menubar, add lazy loading, improve image quality, limit search results, filter browse artists

This commit is contained in:
2026-01-25 01:16:17 +00:00
committed by GitHub
parent 43a51b165b
commit b5fc05382e
6 changed files with 29 additions and 19 deletions

View File

@@ -35,7 +35,12 @@ export default function SearchPage() {
try {
setIsSearching(true);
const results = await search2(query);
setSearchResults(results);
// Limit results to 5 of each type
setSearchResults({
artists: results.artists.slice(0, 5),
albums: results.albums.slice(0, 5),
songs: results.songs.slice(0, 5)
});
} catch (error) {
console.error('Search failed:', error);
setSearchResults({ artists: [], albums: [], songs: [] });