aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/components/Search/index.styled.ts5
-rw-r--r--src/helpers/searchSong.ts3
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);
+ );
}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage