Skip to content

Commit

Permalink
style: update filter dropdown styles
Browse files Browse the repository at this point in the history
  • Loading branch information
metebykl committed Oct 8, 2024
1 parent a28a695 commit d74cee5
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions frontend/src/routes/home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ import {
DropdownMenu,
DropdownMenuCheckboxItem,
DropdownMenuContent,
DropdownMenuLabel,
DropdownMenuSeparator,
DropdownMenuTrigger,
} from "@/components/ui/dropdown-menu";
import { Input } from "@/components/ui/input";
Expand Down Expand Up @@ -115,14 +113,12 @@ export default function HomePage() {
<div className="flex items-center gap-x-2">
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button variant="outline">
<ChevronDown className="mr-2 size-4 text-muted-foreground" />
<Button variant="ghost" className="gap-x-2">
Filter by Type
<ChevronDown className="size-4 text-muted-foreground" />
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent align="start" className="w-56">
<DropdownMenuLabel>Mod Type</DropdownMenuLabel>
<DropdownMenuSeparator />
{contentTypes.map((t) => (
<DropdownMenuCheckboxItem
key={t}
Expand All @@ -144,14 +140,12 @@ export default function HomePage() {
</DropdownMenu>
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button variant="outline">
<ChevronDown className="mr-2 size-4 text-muted-foreground" />
<Button variant="ghost" className="gap-x-2">
Filter by Status
<ChevronDown className="size-4 text-muted-foreground" />
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent align="start" className="w-56">
<DropdownMenuLabel>Mod Status</DropdownMenuLabel>
<DropdownMenuSeparator />
<DropdownMenuCheckboxItem
checked={selectedStatus === "enabled"}
onCheckedChange={(c) => {
Expand Down

0 comments on commit d74cee5

Please sign in to comment.