Commit 49c96243 authored by nano's avatar nano

update

parent 994bbf0e
...@@ -114,7 +114,8 @@ class Profiles extends React.Component { ...@@ -114,7 +114,8 @@ class Profiles extends React.Component {
this.cropper = cropper; this.cropper = cropper;
}} }}
src={imageUrl || defaultAvatar} src={imageUrl || defaultAvatar}
style={{ maxHeight: '20vw', maxWidth: '20vw' }} className="cropper-image"
style={{ height: '20vw', width: '20vw' }}
aspectRatio={1 / 1} aspectRatio={1 / 1}
guides guides
/> />
...@@ -124,7 +125,7 @@ class Profiles extends React.Component { ...@@ -124,7 +125,7 @@ class Profiles extends React.Component {
</div> </div>
<div style={{ display: !isUpload ? 'flex' : 'none', flexDirection: 'column' }}> <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' }}> <Button style={{ padding: '4px 0' }}>
<label style={{ display: 'flex', flex: 1, justifyContent: 'center', alignItems: 'center' }}> <label style={{ display: 'flex', flex: 1, justifyContent: 'center', alignItems: 'center' }}>
<Icon type="plus"/><Format id="Change-Avatar"/> <Icon type="plus"/><Format id="Change-Avatar"/>
......
:global { :global {
.app-detail-nav {
}
.ant-card { .ant-card {
margin: 2vh 0; 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 { connect } from 'dva';
import { routerRedux } from 'dva/router'; import { routerRedux } from 'dva/router';
import React, { PropTypes } from 'react'; 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