From f2c68a4ec539154b0fd8178b5e1110176476fccf Mon Sep 17 00:00:00 2001 From: MT-Fire <798521692@qq.com> Date: Sun, 29 Mar 2026 00:14:36 +0800 Subject: [PATCH] =?UTF-8?q?chore(frontend):=20=E5=90=8C=E6=AD=A5=E5=B7=A5?= =?UTF-8?q?=E4=BD=9C=E5=8C=BA=E5=B0=8F=E7=BB=84=E4=BB=B6=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/workspace/citations/citation-link.tsx | 12 ++++++------ .../src/components/workspace/mode-hover-guide.tsx | 5 +---- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/frontend/src/components/workspace/citations/citation-link.tsx b/frontend/src/components/workspace/citations/citation-link.tsx index a80e71bc..6aab8c26 100644 --- a/frontend/src/components/workspace/citations/citation-link.tsx +++ b/frontend/src/components/workspace/citations/citation-link.tsx @@ -9,13 +9,13 @@ import { } from "@/components/ui/hover-card"; import { cn } from "@/lib/utils"; -export function CitationLink({ - href, +export function CitationLink({ + href, children, - ...props + ...props }: ComponentProps<"a">) { const domain = extractDomain(href ?? ""); - + // Priority: children > domain const childrenText = typeof children === "string" @@ -48,12 +48,12 @@ export function CitationLink({
+
{href}
)} diff --git a/frontend/src/components/workspace/mode-hover-guide.tsx b/frontend/src/components/workspace/mode-hover-guide.tsx index c5c1811c..6bd12d47 100644 --- a/frontend/src/components/workspace/mode-hover-guide.tsx +++ b/frontend/src/components/workspace/mode-hover-guide.tsx @@ -29,10 +29,7 @@ function getModeDescriptionKey( mode: AgentMode, ): keyof Pick< Translations["inputBox"], - | "flashModeDescription" - | "reasoningModeDescription" - | "proModeDescription" - | "ultraModeDescription" + "flashModeDescription" | "reasoningModeDescription" | "proModeDescription" | "ultraModeDescription" > { switch (mode) { case "flash":