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