Skip to content
This repository has been archived by the owner on Oct 20, 2021. It is now read-only.

Commit

Permalink
fix(AvatarClip): modal style issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Kimi-Gao committed May 16, 2018
1 parent 5757e37 commit 6d05a94
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/components/AvatarClip/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { Component } from 'react'
import PropTypes from 'prop-types'
import AvatarEditor from 'react-avatar-editor'
import Button from '../Button'
import { Modal, ModalHeader, ModalBody } from '../Modal'
import { Modal, ModalBody } from '../Modal'
import './index.less'

class AvatarClip extends Component {
Expand Down Expand Up @@ -36,7 +36,6 @@ class AvatarClip extends Component {
const { image, width, height, border, color, cropButtonName, open } = this.props
return (
<Modal open={open} onClose={::this.onClose} lock>
<ModalHeader />
<ModalBody>
<h3 className="AvatarClip-title">编辑头像</h3>
<div className="AvatarClip-subtitle">调整头像尺寸和位置</div>
Expand Down
7 changes: 5 additions & 2 deletions src/components/AvatarClip/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
margin-top: @unit-double;
margin-bottom: @unit;
font-size: 24px;
font-weight: @fontweight-bold;
color: #262626;
text-align: center;
line-height: 28px;
}
.AvatarClip-subtitle {
padding: 0 38px;
Expand All @@ -21,12 +23,13 @@
.AvatarClip-edit {
width: 240px;
height: 240px;
margin: 24px 60px 50px;
margin: 24px 42px 50px;
canvas {
cursor: move;
}
}
.AvatarClip-zoom {
line-height: 16px;
svg {
vertical-align: text-bottom;
fill: #9fadc7;
Expand Down Expand Up @@ -101,7 +104,7 @@
}
.AvatarClip-footer {
margin-top: 40px;
margin-bottom: 28px;
margin-bottom: 10px;
button {
width: 220px;
height: 33px;
Expand Down

0 comments on commit 6d05a94

Please sign in to comment.