feat(artist): add search navigation with prev/next buttons
- Add navigation to search results with smooth scrolling - Show result counter (X/Y) with prev/next chevron buttons - Support keyboard navigation (Enter, Shift+Enter, Escape) - Add searchId prop to AlbumCard for DOM targeting - Style search toggle button without background - Remove focus outline from search input
This commit is contained in:
1 parent
98f1209e37
commit
99aba9a76a
2 files changed
+169
-62
No files matched your search
@@ -16,6 +16,7 @@
|
||||
artist: string;
|
||||
quality?: string;
|
||||
size?: 'standard' | 'large';
|
||||
searchId?: string;
|
||||
onclick?: () => void;
|
||||
onPlay?: () => void;
|
||||
onPlayNext?: () => void;
|
||||
@@ -38,6 +39,7 @@
|
||||
artist,
|
||||
quality,
|
||||
size = 'standard',
|
||||
searchId,
|
||||
onclick,
|
||||
onPlay,
|
||||
onPlayNext,
|
||||
@@ -153,6 +155,7 @@
|
||||
<div
|
||||
class="album-card"
|
||||
style="width: {cardSize}px"
|
||||
data-search-id={searchId}
|
||||
onclick={handleCardClick}
|
||||
role="button"
|
||||
tabindex="0"
|
||||
|
||||
Reference in new issue
Block a user