Skip to content

Commit

Permalink
fix column width #19
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Zemp committed Aug 29, 2019
1 parent 8eba167 commit 6c7ff43
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions new/src/components/DataReactTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ function getColumns(columnRow, dataRow) {
accessor: column,
foldable: true,
style: { whiteSpace: "unset", wordWrap: "break" },
width: "100"
width: 100
};
if (wideColumns.hasOwnProperty(column)) {columnProperties.width = "200"}
if (wideColumns.hasOwnProperty(column)) {columnProperties.width = 200;}
columnsArray.push(columnProperties);
return columnsArray;
}, []);
Expand All @@ -43,7 +43,7 @@ function DataReactTable(props) {
<FoldableTable
style={{
margin: "10px",
height: "calc(100% - 600px)"
height: "calc(100% - 600px)",
}}
data={getData(props.data)}
columns={definedColumns}
Expand Down

0 comments on commit 6c7ff43

Please sign in to comment.