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