Merge pull request #53 from sanjeed5/feature-updates

Fix thread open icon
This commit is contained in:
Brace Sproul
2025-03-11 13:44:04 -07:00
committed by GitHub
2 changed files with 17 additions and 4 deletions

View File

@@ -12,7 +12,7 @@ import {
SheetTitle,
} from "@/components/ui/sheet";
import { Skeleton } from "@/components/ui/skeleton";
import { PanelRightOpen } from "lucide-react";
import { PanelRightOpen, PanelRightClose } from "lucide-react";
import { useMediaQuery } from "@/hooks/useMediaQuery";
function ThreadList({
@@ -97,7 +97,11 @@ export default function ThreadHistory() {
variant="ghost"
onClick={() => setChatHistoryOpen((p) => !p)}
>
<PanelRightOpen className="size-5" />
{chatHistoryOpen ? (
<PanelRightOpen className="size-5" />
) : (
<PanelRightClose className="size-5" />
)}
</Button>
<h1 className="text-xl font-semibold tracking-tight">
Thread History

View File

@@ -18,6 +18,7 @@ import {
ArrowDown,
LoaderCircle,
PanelRightOpen,
PanelRightClose,
SquarePen,
} from "lucide-react";
import { BooleanParam, StringParam, useQueryParam } from "use-query-params";
@@ -223,7 +224,11 @@ export function Thread() {
variant="ghost"
onClick={() => setChatHistoryOpen((p) => !p)}
>
<PanelRightOpen className="size-5" />
{chatHistoryOpen ? (
<PanelRightOpen className="size-5" />
) : (
<PanelRightClose className="size-5" />
)}
</Button>
)}
</div>
@@ -238,7 +243,11 @@ export function Thread() {
variant="ghost"
onClick={() => setChatHistoryOpen((p) => !p)}
>
<PanelRightOpen className="size-5" />
{chatHistoryOpen ? (
<PanelRightOpen className="size-5" />
) : (
<PanelRightClose className="size-5" />
)}
</Button>
)}
</div>