diff options
| author | Brendan F <EpicWolverine@users.noreply.github.com> | 2023-07-12 23:19:17 -0700 |
|---|---|---|
| committer | Brendan F <EpicWolverine@users.noreply.github.com> | 2023-07-12 23:19:17 -0700 |
| commit | c5a1f7e581ce844d63e0311d1d57cf5dda3cf48e (patch) | |
| tree | e18024197215bcdfef6a7cb1926fa2dd234d54af | |
| parent | da13eccb881b1aaf5b7bf1fbaad3a0754390285f (diff) | |
Remove 5 result limit and add scrolling
| -rw-r--r-- | src/components/Search/index.styled.ts | 5 | ||||
| -rw-r--r-- | src/helpers/searchSong.ts | 3 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/components/Search/index.styled.ts b/src/components/Search/index.styled.ts index c1344d5..89af883 100644 --- a/src/components/Search/index.styled.ts +++ b/src/components/Search/index.styled.ts @@ -52,11 +52,12 @@ export const ResultsContainer = styled.div` display: flex; flex-direction: column; - justify-content: flex-end; + justify-content: flex-start; width: 100%; - overflow-y: scroll; + max-height: 500%; + overflow-y: auto; `; export const Result = styled.div` diff --git a/src/helpers/searchSong.ts b/src/helpers/searchSong.ts index 24132f6..01f6304 100644 --- a/src/helpers/searchSong.ts +++ b/src/helpers/searchSong.ts @@ -15,6 +15,5 @@ export function searchSong(searchTerm: string): Song[] { }) .sort((a, b) => a.artist.toLowerCase().localeCompare(b.artist.toLocaleLowerCase()) - ) - .slice(0, 5); + ); } |
