chore(frontend): 同步工作区小组件格式
This commit is contained in:
parent
63e4869101
commit
f2c68a4ec5
|
|
@ -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({
|
|||
<div className="p-3">
|
||||
<div className="space-y-1">
|
||||
{displayText && (
|
||||
<h4 className="truncate text-sm leading-tight font-medium">
|
||||
<h4 className="truncate font-medium text-sm leading-tight">
|
||||
{displayText}
|
||||
</h4>
|
||||
)}
|
||||
{href && (
|
||||
<p className="text-muted-foreground truncate text-xs break-all">
|
||||
<p className="truncate break-all text-muted-foreground text-xs">
|
||||
{href}
|
||||
</p>
|
||||
)}
|
||||
|
|
|
|||
|
|
@ -29,10 +29,7 @@ function getModeDescriptionKey(
|
|||
mode: AgentMode,
|
||||
): keyof Pick<
|
||||
Translations["inputBox"],
|
||||
| "flashModeDescription"
|
||||
| "reasoningModeDescription"
|
||||
| "proModeDescription"
|
||||
| "ultraModeDescription"
|
||||
"flashModeDescription" | "reasoningModeDescription" | "proModeDescription" | "ultraModeDescription"
|
||||
> {
|
||||
switch (mode) {
|
||||
case "flash":
|
||||
|
|
|
|||
Loading…
Reference in New Issue