Skip to content
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.

Commit

Permalink
Merge pull request #3 from lovebrew/Nawias/fixFirefox
Browse files Browse the repository at this point in the history
Fixed dropzone being too small on firefox
  • Loading branch information
TurtleP authored Oct 17, 2023
2 parents a46e2a1 + 6f59fa2 commit 6970457
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
6 changes: 5 additions & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ function App() {
window.URL.revokeObjectURL(link.href);
return "Downloaded";
},
error: "Something went wrong 😔",
error: () => {
playError();
return "Something went wrong 😔";
},
});
return response.message;
};
Expand All @@ -41,6 +44,7 @@ function App() {
try {
await validateZip(archive);
} catch (reason) {
playError();
if (typeof reason === "string") {
toast.error(reason);
} else {
Expand Down
8 changes: 3 additions & 5 deletions src/components/Flask/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,9 @@ const DropZone = tw.div<DropZoneProps>`
`;

const FileInput = tw.input`
absolute
top-0
right-0
left-0
bottom-0
relative
h-full
w-full
opacity-0
`;

Expand Down

0 comments on commit 6970457

Please sign in to comment.