Skip to content

Commit

Permalink
fix: table wrapper, cell width
Browse files Browse the repository at this point in the history
  • Loading branch information
sparcscasio committed Jan 24, 2025
1 parent 473ff0a commit c29688e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/web/src/features/report/components/TimelineTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ interface TimelineTableProps {
const TableWrapper = styled.div`
display: flex;
flex-direction: column;
width: 100%;
overflow: hidden;
border-radius: 4px;
`;
Expand All @@ -49,23 +48,23 @@ const TimelineTable: React.FC<TimelineTableProps> = ({ contents }) => {
const { startDate, endDate } = row.original; // row.original을 통해 원본 데이터를 접근
return `${formatDate(startDate)} - ${formatDate(endDate)}`;
},
size: 260,
size: 500,
}),
columnHelper.accessor("content", {
header: "내용",
cell: ({ row }) => {
const rowContent = row.original.content;
return `${rowContent === null ? "-" : rowContent}`;
},
size: 302,
size: 800,
}),
columnHelper.accessor("memo", {
header: "비고",
cell: ({ row }) => {
const content = row.original.memo;
return `${content === null ? "-" : content}`;
},
size: 370,
size: 1000,
}),
];

Expand Down

0 comments on commit c29688e

Please sign in to comment.