첨부파일 이름으로 나오게 함

This commit is contained in:
leeheejin 2025-12-11 15:50:28 +09:00
parent a489e2c155
commit 84bd1ce154
1 changed files with 16 additions and 5 deletions

View File

@ -4014,13 +4014,24 @@ export const TableListComponent: React.FC<TableListComponentProps> = ({
return <span className="text-muted-foreground text-xs">-</span>;
}
// 파일 개수와 아이콘 표시
// 파일 이름 표시 (여러 개면 쉼표로 구분)
const { Paperclip } = require("lucide-react");
const fileNames = files.map((f: any) => f.realFileName || f.real_file_name || f.name || "파일").join(", ");
return (
<div className="flex items-center gap-1 text-sm">
<Paperclip className="h-4 w-4 text-gray-500" />
<span className="text-blue-600 font-medium">{files.length}</span>
<span className="text-muted-foreground text-xs"></span>
<div className="flex items-center gap-1.5 text-sm max-w-full">
<Paperclip className="h-4 w-4 text-gray-500 flex-shrink-0" />
<span
className="text-blue-600 truncate"
title={fileNames}
>
{fileNames}
</span>
{files.length > 1 && (
<span className="text-muted-foreground text-xs flex-shrink-0">
({files.length})
</span>
)}
</div>
);
}