mirror of
https://github.com/filecoin-project/slate.git
synced 2024-12-24 17:44:50 +03:00
fix for table top row
This commit is contained in:
parent
6fd9da0eaa
commit
3b05fdc566
@ -132,11 +132,7 @@ export class Table extends React.Component {
|
||||
{this.props.noLabel ? null : (
|
||||
<div css={STYLES_TABLE_TOP_ROW} style={this.props.topRowStyle}>
|
||||
{data.columns.map((c, cIndex) => {
|
||||
const text = c.hideLabel
|
||||
? ""
|
||||
: Strings.isEmpty(c.name)
|
||||
? c.key
|
||||
: c.name;
|
||||
const text = c.hideLabel ? "" : c.name ? c.name : c.key;
|
||||
let localWidth = c.width ? c.width : width;
|
||||
let flexShrink = c.width && c.width !== "100%" ? "0" : null;
|
||||
if (cIndex === 0 && !c.width) {
|
||||
|
Loading…
Reference in New Issue
Block a user