From 647e2e487238aed36ff9a880648e5c3e8725160f Mon Sep 17 00:00:00 2001 From: joonhoekim <26rote@gmail.com> Date: Thu, 27 Nov 2025 15:11:02 +0900 Subject: (김준회) dolce 컬럼 조정 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/dolce/table/detail-drawing-columns.tsx | 29 ++++++-------- lib/dolce/table/drawing-list-columns.tsx | 10 ++--- lib/dolce/table/file-list-columns.tsx | 64 +++++++++++++++--------------- 3 files changed, 50 insertions(+), 53 deletions(-) (limited to 'lib') diff --git a/lib/dolce/table/detail-drawing-columns.tsx b/lib/dolce/table/detail-drawing-columns.tsx index 6127a7b6..851d8903 100644 --- a/lib/dolce/table/detail-drawing-columns.tsx +++ b/lib/dolce/table/detail-drawing-columns.tsx @@ -122,15 +122,6 @@ export function createDetailDrawingColumns( return
{lng === "en" ? (userENM || userNM) : (userNM || userENM)}
; }, }, - { - accessorKey: "CreateDt", - header: t("detailDrawing.columns.createdAt"), - minSize: 200, - cell: ({ row }) => { - const date = row.getValue("CreateDt") as string; - return
{formatDolceDateTime(date)}
; - }, - }, { accessorKey: "RegisterDesc", header: "Comment", @@ -145,18 +136,14 @@ export function createDetailDrawingColumns( id: "actions", header: t("detailDrawing.columns.actions"), minSize: 100, - maxSize: 100, cell: ({ row }) => { const status = row.getValue("Status") as string; const isEditable = status === "Standby"; return ( -
e.stopPropagation()} - > +
); }, }, + { + accessorKey: "CreateDt", + header: t("detailDrawing.columns.createdAt"), + minSize: 250, + cell: ({ row }) => { + const date = row.getValue("CreateDt") as string; + return
{formatDolceDateTime(date)}
; + }, + }, ]; } diff --git a/lib/dolce/table/drawing-list-columns.tsx b/lib/dolce/table/drawing-list-columns.tsx index 34055eff..eefd0b40 100644 --- a/lib/dolce/table/drawing-list-columns.tsx +++ b/lib/dolce/table/drawing-list-columns.tsx @@ -14,11 +14,11 @@ export function drawingListColumns(lng: string, t: any): ColumnDef{row.getValue("DrawingNo")}
; }, }, - { - accessorKey: "RegisterGroupId", - header: "RegisterGroupId", - minSize: 150, - }, + // { + // accessorKey: "RegisterGroupId", + // header: "RegisterGroupId", + // minSize: 150, + // }, { accessorKey: "DrawingName", header: t("drawingList.columns.drawingName"), diff --git a/lib/dolce/table/file-list-columns.tsx b/lib/dolce/table/file-list-columns.tsx index 3018e240..e21f4382 100644 --- a/lib/dolce/table/file-list-columns.tsx +++ b/lib/dolce/table/file-list-columns.tsx @@ -30,40 +30,10 @@ export const createFileListColumns = ({ return
{row.getValue("FileSeq")}
; }, }, - { - accessorKey: "FileName", - header: lng === "ko" ? "파일명" : "File Name", - minSize: 300, - cell: ({ row }) => { - return
{row.getValue("FileName")}
; - }, - }, - { - accessorKey: "FileSize", - header: lng === "ko" ? "파일크기" : "File Size", - minSize: 100, - cell: ({ row }) => { - const size = parseInt(row.getValue("FileSize") as string); - if (isNaN(size) || size === 0) return "-"; - - if (size < 1024) return `${size} B`; - if (size < 1024 * 1024) return `${(size / 1024).toFixed(2)} KB`; - return `${(size / (1024 * 1024)).toFixed(2)} MB`; - }, - }, - { - accessorKey: "CreateDt", - header: lng === "ko" ? "생성일시" : "Created Date", - minSize: 200, - cell: ({ row }) => { - const date = row.getValue("CreateDt") as string; - return
{formatDolceDateTime(date)}
; - }, - }, { id: "actions", header: "Action", - minSize: 160, + minSize: 50, cell: ({ row }) => { const isLocal = row.original.FileServerId === "LOCAL"; const isDownloading = downloadingFileId === row.original.FileId; @@ -84,7 +54,6 @@ export const createFileListColumns = ({ ) : ( )} - {lng === "ko" ? "다운로드" : "Download"} {isLocal && onDelete && (