wip on avatar cropping
This commit is contained in:
+8
-6
@@ -2159,9 +2159,10 @@ ul.tabbar li.active > a {
|
|||||||
|
|
||||||
.cropper {
|
.cropper {
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 16rem;
|
width: 18rem;
|
||||||
height: 18rem;
|
height: 21rem;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
|
margin-top: 1rem;
|
||||||
align-self: center;
|
align-self: center;
|
||||||
transform: translateZ(0);
|
transform: translateZ(0);
|
||||||
border-radius: 0.25rem;
|
border-radius: 0.25rem;
|
||||||
@@ -2169,12 +2170,13 @@ ul.tabbar li.active > a {
|
|||||||
|
|
||||||
.cropper .bounding-box {
|
.cropper .bounding-box {
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 16rem;
|
width: 18rem;
|
||||||
height: 16rem;
|
height: 18rem;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
border-radius: 0.25rem;
|
border-radius: 0.25rem;
|
||||||
border: solid 2px #1e88e5;
|
border: solid 2px #1e88e5;
|
||||||
|
box-shadow: 1px 1px 3px grey;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cropper .preview {
|
.cropper .preview {
|
||||||
@@ -2186,8 +2188,8 @@ ul.tabbar li.active > a {
|
|||||||
|
|
||||||
.cropper .cutout {
|
.cropper .cutout {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 15rem;
|
width: 17rem;
|
||||||
height: 15rem;
|
height: 17rem;
|
||||||
border: 1px dashed #999;
|
border: 1px dashed #999;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
|||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -28,7 +28,7 @@ export default class AvatarUpload extends React.Component {
|
|||||||
handleFileUpload(e) {
|
handleFileUpload(e) {
|
||||||
const image = e.target.files[0];
|
const image = e.target.files[0];
|
||||||
if (this.props.onImageReceived) {
|
if (this.props.onImageReceived) {
|
||||||
this.props.onFileReceived(URL.createObjectURL(image));
|
this.props.onImageReceived(URL.createObjectURL(image));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+2
-2
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user