@etsoo/materialui 1.4.31 → 1.4.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/UserAvatarEditor.js
CHANGED
|
@@ -76,8 +76,8 @@ export function UserAvatarEditor(props) {
|
|
|
76
76
|
};
|
|
77
77
|
// Handle image load
|
|
78
78
|
const handleLoad = (imageInfo) => {
|
|
79
|
-
// Ignore small images
|
|
80
|
-
if (imageInfo.
|
|
79
|
+
// Ignore too small images
|
|
80
|
+
if (imageInfo.resource.width < 10 || imageInfo.resource.height < 10)
|
|
81
81
|
return;
|
|
82
82
|
if (noHeight) {
|
|
83
83
|
setHeight((imageInfo.height * width) / imageInfo.width);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@etsoo/materialui",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.32",
|
|
4
4
|
"description": "TypeScript Material-UI Implementation",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@emotion/css": "^11.13.5",
|
|
36
36
|
"@emotion/react": "^11.13.5",
|
|
37
37
|
"@emotion/styled": "^11.13.5",
|
|
38
|
-
"@etsoo/appscript": "^1.5.
|
|
38
|
+
"@etsoo/appscript": "^1.5.72",
|
|
39
39
|
"@etsoo/notificationbase": "^1.1.54",
|
|
40
40
|
"@etsoo/react": "^1.8.3",
|
|
41
41
|
"@etsoo/shared": "^1.2.55",
|
package/src/UserAvatarEditor.tsx
CHANGED
|
@@ -198,8 +198,8 @@ export function UserAvatarEditor(props: UserAvatarEditorProps) {
|
|
|
198
198
|
|
|
199
199
|
// Handle image load
|
|
200
200
|
const handleLoad = (imageInfo: ImageState) => {
|
|
201
|
-
// Ignore small images
|
|
202
|
-
if (imageInfo.
|
|
201
|
+
// Ignore too small images
|
|
202
|
+
if (imageInfo.resource.width < 10 || imageInfo.resource.height < 10) return;
|
|
203
203
|
|
|
204
204
|
if (noHeight) {
|
|
205
205
|
setHeight((imageInfo.height * width) / imageInfo.width);
|