From 62a7591ffce6bb3e952dd555124c32932ff3ebee Mon Sep 17 00:00:00 2001 From: Rick Love Date: Mon, 8 Mar 2021 10:39:11 -0600 Subject: [PATCH] FIX Image Upload Preview Size (#225) --- .../CreateNonFungiblePage/FileUpload.tsx | 14 +++++++++++--- .../components/CreateNonFungiblePage/Preview.tsx | 2 +- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/client/src/components/CreateNonFungiblePage/FileUpload.tsx b/client/src/components/CreateNonFungiblePage/FileUpload.tsx index 773f8bc0..2df38fe1 100644 --- a/client/src/components/CreateNonFungiblePage/FileUpload.tsx +++ b/client/src/components/CreateNonFungiblePage/FileUpload.tsx @@ -11,7 +11,7 @@ import { export function FilePreview({ file }: { file: SelectedFile }) { const dispatch = useDispatch(); if (/^image\/.*/.test(file.type)) { - return ; + return ; } if (/^video\/.*/.test(file.type)) { const canvasRef = createRef(); @@ -101,8 +101,16 @@ export default function FileUpload() { > {state.selectedFile?.objectUrl ? ( - - + + + + ) : (