minor cleanup
This commit is contained in:
+3
-2
@@ -1117,8 +1117,8 @@ i.search {
|
||||
color: #666;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
width: 8rem;
|
||||
height: 8rem;
|
||||
justify-content: center;
|
||||
background: center no-repeat url("../img/broken_image.png");
|
||||
border-radius: 50%;
|
||||
@@ -1147,6 +1147,7 @@ i.search {
|
||||
margin-top: -1rem;
|
||||
bottom: 0;
|
||||
background-color: #fafafa;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.avatar-upload .inputfile:focus + label.round {
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -147,7 +147,6 @@ export function imageCrop(mime, objURL, left, top, width, height, scale, onSucce
|
||||
canvas.height = height * scale;
|
||||
let ctx = canvas.getContext('2d');
|
||||
ctx.imageSmoothingEnabled = true;
|
||||
console.log("drawImage from", left, top, width, height, "to", canvas.width, canvas.height);
|
||||
ctx.drawImage(this, left, top, width, height, 0, 0, canvas.width, canvas.height);
|
||||
|
||||
mime = SUPPORTED_IMAGE_FORMATS.includes(mime) ? mime : 'image/jpeg';
|
||||
@@ -191,7 +190,7 @@ export function filePasted(event, onImageSuccess, onAttachmentSuccess, onError)
|
||||
if (item.kind === 'file') {
|
||||
var file = item.getAsFile();
|
||||
if (!file) {
|
||||
console.log("Failed to get file object from pasted file item", item.kind, item.type);
|
||||
console.error("Failed to get file object from pasted file item", item.kind, item.type);
|
||||
continue;
|
||||
}
|
||||
if (file.type && file.type.split('/')[0] == 'image') {
|
||||
@@ -239,7 +238,7 @@ export function base64ReEncode(str) {
|
||||
try {
|
||||
str = btoa(atob(str));
|
||||
} catch(err) {
|
||||
console.log("Failed to base64 re-encode string.", err);
|
||||
console.error("Failed to base64 re-encode string.", err);
|
||||
str = null;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -118,8 +118,6 @@ class SidepanelView extends React.Component {
|
||||
badges = null;
|
||||
}
|
||||
|
||||
console.log("avatar URL=", avatar);
|
||||
|
||||
let onCancel;
|
||||
if (['login', 'contacts'].indexOf(view) == -1) {
|
||||
onCancel = this.props.onCancel;
|
||||
|
||||
+2
-4
@@ -234,7 +234,6 @@ function imageCrop(mime, objURL, left, top, width, height, scale, onSuccess, onE
|
||||
canvas.height = height * scale;
|
||||
let ctx = canvas.getContext('2d');
|
||||
ctx.imageSmoothingEnabled = true;
|
||||
console.log("drawImage from", left, top, width, height, "to", canvas.width, canvas.height);
|
||||
ctx.drawImage(this, left, top, width, height, 0, 0, canvas.width, canvas.height);
|
||||
mime = SUPPORTED_IMAGE_FORMATS.includes(mime) ? mime : 'image/jpeg';
|
||||
let blob = await new Promise(resolve => canvas.toBlob(resolve, mime));
|
||||
@@ -274,7 +273,7 @@ function filePasted(event, onImageSuccess, onAttachmentSuccess, onError) {
|
||||
var file = item.getAsFile();
|
||||
|
||||
if (!file) {
|
||||
console.log("Failed to get file object from pasted file item", item.kind, item.type);
|
||||
console.error("Failed to get file object from pasted file item", item.kind, item.type);
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -311,7 +310,7 @@ function base64ReEncode(str) {
|
||||
try {
|
||||
str = btoa(atob(str));
|
||||
} catch (err) {
|
||||
console.log("Failed to base64 re-encode string.", err);
|
||||
console.error("Failed to base64 re-encode string.", err);
|
||||
str = null;
|
||||
}
|
||||
}
|
||||
@@ -4929,7 +4928,6 @@ class SidepanelView extends (react__WEBPACK_IMPORTED_MODULE_0___default().Compon
|
||||
badges = null;
|
||||
}
|
||||
|
||||
console.log("avatar URL=", avatar);
|
||||
let onCancel;
|
||||
|
||||
if (['login', 'contacts'].indexOf(view) == -1) {
|
||||
|
||||
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
+54
-22
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user