Skip to content

Commit

Permalink
Merge pull request #619 from jbetancur/fix/615-amend
Browse files Browse the repository at this point in the history
do not aply overflow when using custom cells
  • Loading branch information
jbetancur authored Jul 5, 2020
2 parents 6e2ce83 + 1c386fd commit 02c88fb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-data-table-component",
"version": "6.9.4",
"version": "6.9.5",
"description": "A declarative react based data table",
"main": "dist/index.cjs.js",
"module": "dist/index.es.js",
Expand Down
2 changes: 1 addition & 1 deletion src/DataTable/TableCell.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const overflowCSS = css`
const TableCellStyle = styled(Cell)`
font-size: ${props => props.theme.rows.fontSize};
font-weight: 400;
${props => !props.column.button && overflowCSS};
${props => !props.column.cell && overflowCSS};
${props => props.column.style};
${props => props.extendedCellStyle};
`;
Expand Down
12 changes: 6 additions & 6 deletions src/DataTable/__tests__/__snapshots__/DataTable.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -20461,6 +20461,12 @@ exports[`DataTable::columns should render correctly when column.button = true 1`
font-weight: 400;
}

.c15 div:first-child {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

.c14 {
display: -webkit-box;
display: -webkit-flex;
Expand Down Expand Up @@ -20899,12 +20905,6 @@ exports[`DataTable::columns should render correctly when column.cell is set to a
font-weight: 400;
}

.c15 div:first-child {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

.c14 {
display: -webkit-box;
display: -webkit-flex;
Expand Down

0 comments on commit 02c88fb

Please sign in to comment.