Skip to content

Commit

Permalink
feat(Table): Added user cell width in styled element
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Pinedo committed Nov 21, 2023
1 parent ee5e138 commit 6a484a2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/table/src/core/Cell/Cell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ export const Cell: React.FC<CellProps> = ({
<StyledTableCellWrapper
onDoubleClick={onDoubleClick}
ref={cellRef}
cellWidth={`${virtualColumn.size}px`}
cellWidth={`${Math.max(
virtualColumn.size,
columnDef.cellStyle?.width,
)}px`}
>
{isEditMode ? editionContent : viewContent}
</StyledTableCellWrapper>
Expand Down

0 comments on commit 6a484a2

Please sign in to comment.