1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-07 01:41:39 +00:00

modify table css (#2537)

This commit is contained in:
杨顺强
2018-11-22 11:05:47 +08:00
committed by Daniel Pan
parent 464ef84b35
commit 921089bd01
12 changed files with 112 additions and 140 deletions

View File

@@ -15,25 +15,23 @@ class TreeDirView extends React.Component {
let children = node.hasChildren() ? node.children : null;
return (
<div className="table-container">
<table>
<thead>
<tr>
<th style={{width: '4%'}}></th>
<th style={{width: '66%'}}>{gettext('Name')}</th>
<th style={{width: '15%'}}>{gettext('Size')}</th>
<th style={{width: '15%'}}>{gettext('Last Update')}</th>
</tr>
</thead>
<tbody>
{children && children.map((node, index) => {
return (
<TreeDirList key={index} node={node} onMainNodeClick={this.props.onMainNodeClick}/>
);
})}
</tbody>
</table>
</div>
<table>
<thead>
<tr>
<th style={{width: '4%'}}></th>
<th style={{width: '66%'}}>{gettext('Name')}</th>
<th style={{width: '15%'}}>{gettext('Size')}</th>
<th style={{width: '15%'}}>{gettext('Last Update')}</th>
</tr>
</thead>
<tbody>
{children && children.map((node, index) => {
return (
<TreeDirList key={index} node={node} onMainNodeClick={this.props.onMainNodeClick}/>
);
})}
</tbody>
</table>
);
}
}