opti: 分组页样式微调

This commit is contained in:
wenbo.dong 2017-11-09 13:36:25 +08:00
parent 81e387ab96
commit f67607da16
3 changed files with 7 additions and 4 deletions

View File

@ -6,7 +6,6 @@ import { formatTime } from '../../common.js';
import { Link } from 'react-router-dom'
import { fetchNewsData, fetchMoreNews } from '../../reducer/modules/news.js'
import ErrMsg from '../ErrMsg/ErrMsg.js';
import './TimeLine.scss';
function timeago(timestamp) {
let minutes, hours, days, seconds, mouth, year;

View File

@ -122,9 +122,9 @@ class ProjectList extends Component {
<div style={{ paddingTop: '24px' }} className="m-panel card-panel card-panel-s project-list" >
<Row className="project-list-header">
<Col span={16} style={{ textAlign: 'left' }}>
{this.props.currGroup.group_name}分组 {projectData.length} 个项目
{this.props.currGroup.group_name} 分组共 ({projectData.length}) 个项目
</Col>
<Col>
<Col span={8}>
{/(admin)|(owner)|(dev)/.test(this.props.currGroup.role) ?
<Link to="/add-project"><Button type="primary">添加项目</Button></Link> :
<Tooltip title="您没有权限,请联系该分组组长或管理员">

View File

@ -18,9 +18,13 @@
line-height: 40px;
border-radius: 4px;
text-align: right;
padding: 13px 15px;
padding: 0 10px;
font-weight: bold;
margin-bottom: 15px;
display: flex;
align-items: center;
color: rgba(39, 56, 72, 0.85);
font-weight: 500;
}
}