Skip to content

Commit

Permalink
fix: projects position
Browse files Browse the repository at this point in the history
  • Loading branch information
rharkor committed Feb 1, 2024
1 parent 08c5be4 commit dcd7877
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/app/src/app/[lang]/(not-protected)/content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { z } from "zod"
import { useDictionary } from "@/contexts/dictionary/utils"
import { getNodesResponseSchema } from "@/lib/schemas/nodes"
import { trpc } from "@/lib/trpc/client"
import { cn } from "@/lib/utils"
import { Button, Input, Spinner } from "@nextui-org/react"

import AddNode from "./add-node"
Expand Down Expand Up @@ -81,7 +82,11 @@ export default function NodesPageContent({ isLoggedIn }: { isLoggedIn: boolean }
)}
</div>
<Input placeholder="Search..." value={search} onValueChange={setSearch} />
<div className="relative flex flex-1 flex-row flex-wrap gap-2">
<div
className={cn("relative flex flex-row flex-wrap gap-2", {
"flex-1": !nodesFilled,
})}
>
{nodesFilled ? (
nodesFilled
.filter((node) => node.name.toLowerCase().includes(search.toLowerCase()))
Expand Down

0 comments on commit dcd7877

Please sign in to comment.