Skip to content

Commit 0a5161d

Browse files
authored
Merge pull request #68 from stamford-syntax-club/ana/sort-fixes
sort fix & margins
2 parents 1c7dee5 + 7cb1148 commit 0a5161d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

apps/web/app/page.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,13 @@ export default function HomePage(): JSX.Element {
134134
/> */}
135135
{/* </Menu.Item> */}
136136

137-
<Title order={6}>Sort By</Title>
137+
<Title order={6} mb="xs">Sort By</Title>
138138
<Box mb="md">
139139
<Select
140140
value={sortField}
141141
onChange={(value) => {
142-
setSortField(value || "rating");
142+
setSortField(value || "name")
143+
setSortOrder(value === "reviewCount" ? "desc" : "asc")
143144
}}
144145
placeholder="Sort by"
145146
data={[
@@ -186,7 +187,7 @@ export default function HomePage(): JSX.Element {
186187
</form>
187188

188189
{/* Popular Searches */}
189-
<Group gap="xs" preventGrowOverflow={false} wrap="nowrap" className="w-full overflow-x-auto">
190+
<Group gap="xs" preventGrowOverflow={false} wrap="nowrap" className="w-full overflow-y-hidden">
190191
<Title className="min-w-max" order={4}>
191192
Quick searches :
192193
</Title>

0 commit comments

Comments
 (0)