Skip to content

Commit 7bb6685

Browse files
committed
Release 2.4.0
1 parent 473c7af commit 7bb6685

File tree

3 files changed

+18
-12
lines changed

3 files changed

+18
-12
lines changed

package-lock.json

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-uploader",
3-
"version": "2.3.7",
3+
"version": "2.4.0",
44
"author": "Upload <hello@upload.io> (https://upload.io)",
55
"description": "React File Upload UI Widget — Lightweight & supports: drag and drop, multiple uploads, image cropping, customization & more 🚀 Comes with Cloud Storage 🌐",
66
"license": "MIT",
@@ -74,7 +74,7 @@
7474
"react": ">=16.3.0"
7575
},
7676
"dependencies": {
77-
"uploader": "^2.6.0"
77+
"uploader": "^2.7.0"
7878
},
7979
"devDependencies": {
8080
"@babel/cli": "7.17.6",

src/UploadDropzone.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,13 @@ export const UploadDropzone = ({ uploader, options, onComplete, onUpdate, width,
3939
return (
4040
<div
4141
ref={elementRef}
42-
style={{ position: "relative", width: "100%", maxWidth: width ?? "600px", height: height ?? "375px" }}
42+
style={{
43+
position: "relative",
44+
width: "100%",
45+
minWidth: "280px",
46+
maxWidth: width ?? "600px",
47+
height: height ?? "375px"
48+
}}
4349
/>
4450
);
4551
};

0 commit comments

Comments
 (0)