Commit cc273a06 authored by mercury233's avatar mercury233

better looking

parent fc513784
Pipeline #19642 passed with stages
in 2 minutes and 53 seconds
......@@ -124,15 +124,14 @@ class Profiles extends React.Component {
style={{ height: '300px', width: '300px', display: !isUpload ? 'block' : 'none' }}
src={avatar || imageUrl || defaultAvatar}
/>
<br/>
<Button type="primary" onClick={this.handleUpload} style={{display:isUpload ? 'inline-block' : 'none'}}>
<Button type="primary" onClick={this.handleUpload} style={{display:isUpload ? 'inline-block' : 'none', marginTop: '2em'}}>
<Icon type="check"/> <Format id="Upload-Avatar"/>
</Button>
<br/>
<Button type="default">
<Button type="default" style={{marginTop: '2em'}}>
<label style={{ display: 'flex', flex: 1, justifyContent: 'center', alignItems: 'center' }}>
<Icon type="plus"/>
<Format id="Change-Avatar" style={{display:isUpload ? 'flex' : 'none'}}/>
<Icon type="plus" style={{marginRight: '0.5em'}} />
{(!isUpload) && <Format id="Change-Avatar"/>}
{isUpload && <Format id="Reselect-Avatar"/>}
<input
type="file" onChange={this.onGetFile} ref={(file) => {
this.file = file;
......
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