perf: always use virtualization for all library tabs
- Remove non-virtualized fallbacks for albums, artists, and tracks - Virtualization now based on max(albums, tracks) count - Standardize BUFFER_ITEMS to 5 across all virtualized components - Reduces code by ~280 lines of duplicate rendering logic - Ensures consistent performance regardless of library size
This commit is contained in:
1 parent
9504294907
commit
d9fa302b3e
2 files changed
+93
-280
No files matched your search
@@ -53,7 +53,7 @@
|
||||
const GROUP_HEADER_HEIGHT = 56; // px
|
||||
const DISC_HEADER_HEIGHT = 32; // px
|
||||
const TRACK_ROW_HEIGHT = 56; // px
|
||||
const BUFFER_ITEMS = 10;
|
||||
const BUFFER_ITEMS = 5; // Consistent with VirtualizedAlbumList and VirtualizedArtistGrid
|
||||
|
||||
// State
|
||||
let containerEl: HTMLDivElement | null = $state(null);
|
||||
|
||||
Reference in new issue
Block a user