perf(library): optimize artist list and albums grid scrolling
- Added smooth scroll CSS optimizations to artist list: - webkit-overflow-scrolling: touch - scroll-behavior: smooth - overscroll-behavior: contain - will-change: scroll-position - contain: strict - Added contain: layout style to artist cards for better rendering - Added same optimizations to albums grid - Memory: selectedArtistAlbums is a derived value that auto-updates when switching artists, old arrays are garbage collected - Note: VirtualizedArtistList exists for future use with large libraries
This commit is contained in:
1 parent
5944099943
commit
d68799da25
1 file changed
+13
@@ -5848,6 +5848,13 @@
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
padding: 4px 12px 4px 0;
|
||||
/* Smooth scrolling optimizations */
|
||||
-webkit-overflow-scrolling: touch;
|
||||
scroll-behavior: smooth;
|
||||
overscroll-behavior: contain;
|
||||
/* GPU acceleration for smoother scrolling */
|
||||
will-change: scroll-position;
|
||||
contain: strict;
|
||||
}
|
||||
|
||||
.artist-group-header {
|
||||
@@ -5865,6 +5872,8 @@
|
||||
gap: 12px;
|
||||
width: 100%;
|
||||
padding: 8px;
|
||||
/* Performance optimizations */
|
||||
contain: layout style;
|
||||
background: transparent;
|
||||
border: none;
|
||||
border-radius: 8px;
|
||||
@@ -5976,6 +5985,10 @@
|
||||
gap: 16px;
|
||||
align-content: start;
|
||||
padding-right: 8px;
|
||||
/* Smooth scrolling optimizations */
|
||||
-webkit-overflow-scrolling: touch;
|
||||
overscroll-behavior: contain;
|
||||
contain: strict;
|
||||
}
|
||||
|
||||
.empty-small {
|
||||
|
||||
Reference in new issue
Block a user