Commit 49c96243 authored by nano's avatar nano

update

parent 994bbf0e
......@@ -114,7 +114,8 @@ class Profiles extends React.Component {
this.cropper = cropper;
}}
src={imageUrl || defaultAvatar}
style={{ maxHeight: '20vw', maxWidth: '20vw' }}
className="cropper-image"
style={{ height: '20vw', width: '20vw' }}
aspectRatio={1 / 1}
guides
/>
......@@ -124,7 +125,7 @@ class Profiles extends React.Component {
</div>
<div style={{ display: !isUpload ? 'flex' : 'none', flexDirection: 'column' }}>
<img alt="avatar" src={avatar || imageUrl || defaultAvatar}/>
<img alt="avatar" style={{ height: '20vw', width: '20vw' }} src={avatar || imageUrl || defaultAvatar}/>
<Button style={{ padding: '4px 0' }}>
<label style={{ display: 'flex', flex: 1, justifyContent: 'center', alignItems: 'center' }}>
<Icon type="plus"/><Format id="Change-Avatar"/>
......
:global {
.app-detail-nav {
}
.ant-card {
margin: 2vh 0;
}
......
import { Alert, Form, Icon, Input, Spin, Steps, Tag, Breadcrumb } from 'antd';
import { Alert, Form, Icon, Input, Spin, Steps, Tag } from 'antd';
import { connect } from 'dva';
import { routerRedux } from 'dva/router';
import React, { PropTypes } from 'react';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment