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

@@ -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>