fix(frontend): artifact download action bounds and lint errors (#1899)

* fix: keep artifact download action in bounds

* fix: fix lint error
This commit is contained in:
Zhou 2026-04-06 16:34:40 +08:00 committed by GitHub
parent 55e78de6fc
commit f5088ed70d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -79,17 +79,17 @@ export function ArtifactFileList({
className="relative cursor-pointer p-3"
onClick={() => handleClick(file)}
>
<CardHeader className="pr-2 pl-1">
<CardTitle className="relative pl-8">
<div>{getFileName(file)}</div>
<CardHeader className="grid-cols-[minmax(0,1fr)_auto] items-center gap-x-3 gap-y-1 pr-2 pl-1">
<CardTitle className="relative min-w-0 pl-8 leading-tight [overflow-wrap:anywhere] break-words">
<div className="min-w-0">{getFileName(file)}</div>
<div className="absolute top-2 -left-0.5">
{getFileIcon(file, "size-6")}
</div>
</CardTitle>
<CardDescription className="pl-8 text-xs">
<CardDescription className="min-w-0 pl-8 text-xs">
{getFileExtensionDisplayName(file)} file
</CardDescription>
<CardAction>
<CardAction className="row-span-1 self-center">
{file.endsWith(".skill") && (
<Button
variant="ghost"