fix(ui): preserve link semantics for the Aria shortcut

This commit is contained in:
moe-berri 2026-11-04 15:37:06 +08:00
parent 63bae79ce8
commit db4ec9832d

View file

@ -29,7 +29,7 @@ import { createGatewayClient } from "@/components/llm_calls/gateway_client";
import { getProxyBaseUrl } from "@/components/networking";
import { SearchSelect } from "@/components/shared/SearchSelect";
import { Alert, AlertDescription } from "@/components/ui/alert";
import { Button } from "@/components/ui/button";
import { Button, buttonVariants } from "@/components/ui/button";
import { Card, CardContent, CardFooter, CardHeader, CardTitle } from "@/components/ui/card";
import { FieldError } from "@/components/ui/field";
import { Kbd } from "@/components/ui/kbd";
@ -159,10 +159,10 @@ export function AriaUsageTrigger() {
const state = useContext(LiteAdminContext);
if (!state) return null;
return (
<Button variant="outline" size="sm" render={<Link href={uiHref("aria")} />} className="gap-1.5">
<Link href={uiHref("aria")} className={cn(buttonVariants({ variant: "outline", size: "sm" }), "gap-1.5")}>
<AriaAvatar size={18} />
Ask Aria
</Button>
</Link>
);
}