opti: 分组动态样式微调

This commit is contained in:
wenbo.dong 2017-11-09 12:15:29 +08:00
parent bf557c5441
commit 81e387ab96
2 changed files with 22 additions and 10 deletions

View File

@ -6,6 +6,7 @@ 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;
@ -56,7 +57,7 @@ function timeago(timestamp) {
// timeago(new Date().getTime() - 40);
@connect(
state => {
return {
newsData: state.news.newsData,
@ -93,7 +94,7 @@ class TimeTree extends Component {
getMore() {
const that = this;
if (this.props.curpage <= this.props.newsData.total) {
this.setState({ loading: true });

View File

@ -14,17 +14,28 @@
color: #6b6c6d;
.ant-timeline-item{
min-height: 60px;
.ant-timeline-item-head-custom {
padding: 0;
width: 0;
}
.ant-timeline-item-head{
width: 40px;
height: 40px;
left: -13px;
top:8px;
// border-color:#e1e3e4;
border:2px solid #e1e3e4;
border-radius: 50%;
// width: 40px;
// height: 40px;
// left: -13px;
top: 13px;
// // border-color:#e1e3e4;
// border:2px solid #e1e3e4;
// border-radius: 50%;
}
.ant-timeline-item-tail{
top: 30px;
// top: 30px;
}
.ant-avatar {
border: 2px solid #e1e3e4;
box-sizing: content-box;
border-radius: 50%;
width: 36px;
height: 36px;
}
}
.ant-avatar{