This commit is contained in:
xuhd committed 2026-05-28 18:56:11 +08:00
1 parent 6102963624
commit e4da5bec8d
2 files changed
+5 -5

No files matched your search

@@ -16,7 +16,7 @@ export type ArtifactProps = HTMLAttributes<HTMLDivElement>;
export const Artifact = ({ className, ...props }: ArtifactProps) => ( export const Artifact = ({ className, ...props }: ArtifactProps) => (
<div <div
className={cn( className={cn(
"flex flex-col overflow-hidden rounded-[1.35rem] border border-[#ece7dd] bg-white shadow-[0_24px_60px_-28px_rgba(15,23,42,0.16)] ring-1 ring-black/3", "flex flex-col overflow-hidden rounded-[1.35rem] border border-border bg-background shadow-[0_24px_60px_-28px_rgba(15,23,42,0.16)] ring-1 ring-black/3",
className, className,
)} )}
{...props} {...props}
@@ -31,7 +31,7 @@ export const ArtifactHeader = ({
}: ArtifactHeaderProps) => ( }: ArtifactHeaderProps) => (
<div <div
className={cn( className={cn(
"flex items-center justify-between border-b border-[#efe9de] bg-white px-4 py-3", "flex items-center justify-between border-b border-border bg-background px-4 py-3",
className, className,
)} )}
{...props} {...props}
@@ -147,7 +147,7 @@ export const ArtifactContent = forwardRef<HTMLDivElement, ArtifactContentProps>(
<div <div
ref={ref} ref={ref}
className={cn( className={cn(
"min-h-0 flex-1 overflow-auto bg-white p-4", "min-h-0 flex-1 overflow-auto bg-background p-4",
className, className,
)} )}
{...props} {...props}
@@ -362,14 +362,14 @@ const ChatBox: React.FC<{ children: React.ReactNode; threadId: string }> = ({
/> />
<ResizablePanel <ResizablePanel
className={cn( className={cn(
"bg-[#fffdfa] transition-all duration-300 ease-in-out", "bg-background transition-all duration-300 ease-in-out",
!sidePanelOpen && "opacity-0", !sidePanelOpen && "opacity-0",
)} )}
id="artifacts" id="artifacts"
> >
<div <div
className={cn( className={cn(
"h-full bg-[#fffdfa] p-4 transition-transform duration-300 ease-in-out", "h-full bg-background p-4 transition-transform duration-300 ease-in-out",
sidePanelOpen ? "translate-x-0" : "translate-x-full", sidePanelOpen ? "translate-x-0" : "translate-x-full",
)} )}
> >