fix: svg属性名写成小驼峰形式,复制按钮紧贴所属信息。

This commit is contained in:
肖应宇 2026-03-23 15:40:29 +08:00
parent 3a86f5f791
commit 04df7e25b1
3 changed files with 29 additions and 29 deletions

View File

@ -43,7 +43,7 @@ export default function WorkspaceLayout({
onOpenChange={handleOpenChange} onOpenChange={handleOpenChange}
> >
{/* MARK: 生产环境下必须注释才能提交!!!! */} {/* MARK: 生产环境下必须注释才能提交!!!! */}
{/* {!isSkillMode && <WorkspaceSidebar className="" />} */} {!isSkillMode && <WorkspaceSidebar className="" />}
<SidebarInset className="min-w-0">{children}</SidebarInset> <SidebarInset className="min-w-0">{children}</SidebarInset>
</SidebarProvider> </SidebarProvider>
<Toaster <Toaster

View File

@ -182,20 +182,20 @@ export function ArtifactFileDetail({
<path <path
d="M5 6L2 9L5 12" d="M5 6L2 9L5 12"
stroke="#150033" stroke="#150033"
stroke-linecap="round" strokeLinecap="round"
stroke-linejoin="round" strokeLinejoin="round"
/> />
<path <path
d="M11 3L7 15" d="M11 3L7 15"
stroke="#150033" stroke="#150033"
stroke-linecap="round" strokeLinecap="round"
stroke-linejoin="round" strokeLinejoin="round"
/> />
<path <path
d="M13 6L16 9L13 12" d="M13 6L16 9L13 12"
stroke="#150033" stroke="#150033"
stroke-linecap="round" strokeLinecap="round"
stroke-linejoin="round" strokeLinejoin="round"
/> />
</svg> </svg>
</ToggleGroupItem> </ToggleGroupItem>
@ -259,8 +259,8 @@ export function ArtifactFileDetail({
<path <path
d="M6 2H13C14.1046 2 15 2.89543 15 4V13" d="M6 2H13C14.1046 2 15 2.89543 15 4V13"
stroke="#666666" stroke="#666666"
stroke-linecap="round" strokeLinecap="round"
stroke-linejoin="round" strokeLinejoin="round"
/> />
<rect <rect
x="2.5" x="2.5"
@ -292,13 +292,13 @@ export function ArtifactFileDetail({
<path <path
d="M16 9V14C16 15.1046 15.1046 16 14 16H4C2.89543 16 2 15.1046 2 14V9" d="M16 9V14C16 15.1046 15.1046 16 14 16H4C2.89543 16 2 15.1046 2 14V9"
stroke="#666666" stroke="#666666"
stroke-linecap="round" strokeLinecap="round"
/> />
<path <path
d="M9 2V13M9 13L5 9M9 13L13 9" d="M9 2V13M9 13L5 9M9 13L13 9"
stroke="#666666" stroke="#666666"
stroke-linecap="round" strokeLinecap="round"
stroke-linejoin="round" strokeLinejoin="round"
/> />
</svg> </svg>
</ArtifactAction> </ArtifactAction>
@ -325,26 +325,26 @@ export function ArtifactFileDetail({
<path <path
d="M6 2V4C6 5.10457 5.10457 6 4 6H2" d="M6 2V4C6 5.10457 5.10457 6 4 6H2"
stroke="currentColor" stroke="currentColor"
stroke-linecap="round" strokeLinecap="round"
stroke-linejoin="round" strokeLinejoin="round"
/> />
<path <path
d="M6 16V14C6 12.8954 5.10457 12 4 12H2" d="M6 16V14C6 12.8954 5.10457 12 4 12H2"
stroke="currentColor" stroke="currentColor"
stroke-linecap="round" strokeLinecap="round"
stroke-linejoin="round" strokeLinejoin="round"
/> />
<path <path
d="M12 2V4C12 5.10457 12.8954 6 14 6H16" d="M12 2V4C12 5.10457 12.8954 6 14 6H16"
stroke="currentColor" stroke="currentColor"
stroke-linecap="round" strokeLinecap="round"
stroke-linejoin="round" strokeLinejoin="round"
/> />
<path <path
d="M12 16V14C12 12.8954 12.8954 12 14 12H16" d="M12 16V14C12 12.8954 12.8954 12 14 12H16"
stroke="currentColor" stroke="currentColor"
stroke-linecap="round" strokeLinecap="round"
stroke-linejoin="round" strokeLinejoin="round"
/> />
</svg> </svg>
) : ( ) : (
@ -358,8 +358,8 @@ export function ArtifactFileDetail({
<path <path
d="M5.75 15.5H4.5C3.39543 15.5 2.5 14.6046 2.5 13.5V12.25M2.5 5.75V4.5C2.5 3.39543 3.39543 2.5 4.5 2.5H5.75M12.25 2.5H13.5C14.6046 2.5 15.5 3.39543 15.5 4.5V5.75M15.5 12.25V13.5C15.5 14.6046 14.6046 15.5 13.5 15.5H12.25" d="M5.75 15.5H4.5C3.39543 15.5 2.5 14.6046 2.5 13.5V12.25M2.5 5.75V4.5C2.5 3.39543 3.39543 2.5 4.5 2.5H5.75M12.25 2.5H13.5C14.6046 2.5 15.5 3.39543 15.5 4.5V5.75M15.5 12.25V13.5C15.5 14.6046 14.6046 15.5 13.5 15.5H12.25"
stroke="currentColor" stroke="currentColor"
stroke-linecap="round" strokeLinecap="round"
stroke-linejoin="round" strokeLinejoin="round"
/> />
</svg> </svg>
)} )}
@ -380,7 +380,7 @@ export function ArtifactFileDetail({
<path <path
d="M4 14L14 4M4 4L14 14" d="M4 14L14 4M4 4L14 14"
stroke="#666666" stroke="#666666"
stroke-linecap="round" strokeLinecap="round"
/> />
</svg> </svg>
</ArtifactAction> </ArtifactAction>
@ -532,8 +532,8 @@ export const ArtifactZoomSelector = ({
<path <path
d="M5.33325 7.5H9.7777M7.55547 5V10" d="M5.33325 7.5H9.7777M7.55547 5V10"
stroke="#666666" stroke="#666666"
stroke-linecap="round" strokeLinecap="round"
stroke-linejoin="round" strokeLinejoin="round"
/> />
</svg> </svg>
</button> </button>
@ -572,8 +572,8 @@ export const ArtifactZoomSelector = ({
<path <path
d="M4.99927 7.5H9.99927" d="M4.99927 7.5H9.99927"
stroke="#666666" stroke="#666666"
stroke-linecap="round" strokeLinecap="round"
stroke-linejoin="round" strokeLinejoin="round"
/> />
</svg> </svg>
</button> </button>

View File

@ -40,7 +40,7 @@ export function MessageListItem({
const isHuman = message.type === "human"; const isHuman = message.type === "human";
return ( return (
<AIElementMessage <AIElementMessage
className={cn("group/conversation-message relative w-full", className)} className={cn("group/conversation-message relative w-full mb-1", className)}
from={isHuman ? "user" : "assistant"} from={isHuman ? "user" : "assistant"}
> >
<MessageContent <MessageContent
@ -50,7 +50,7 @@ export function MessageListItem({
/> />
<MessageToolbar <MessageToolbar
className={cn( className={cn(
isHuman ? "-bottom-9 justify-end" : "-bottom-8", isHuman ? "-bottom-8 justify-end" : "-bottom-8",
"absolute right-0 left-0 z-20 opacity-0 transition-opacity delay-200 duration-300 group-hover/conversation-message:opacity-100", "absolute right-0 left-0 z-20 opacity-0 transition-opacity delay-200 duration-300 group-hover/conversation-message:opacity-100",
)} )}
> >