From 145f4d81db88f792478baba12ff0f70a4295b297 Mon Sep 17 00:00:00 2001 From: Manish Kushare Date: Mon, 16 May 2022 14:32:10 +0530 Subject: [PATCH] solved border radius & alignment issue after selecting file (#3032) --- frontend/src/Editor/Components/FilePicker.jsx | 29 ++++--------------- 1 file changed, 6 insertions(+), 23 deletions(-) diff --git a/frontend/src/Editor/Components/FilePicker.jsx b/frontend/src/Editor/Components/FilePicker.jsx index b4a5f26322..b7eb54c3c4 100644 --- a/frontend/src/Editor/Components/FilePicker.jsx +++ b/frontend/src/Editor/Components/FilePicker.jsx @@ -219,12 +219,7 @@ export const FilePicker = ({ return (
{showSelectdFiles ? ( - + {selectedFiles.map((acceptedFile, index) => ( <>
@@ -280,24 +275,12 @@ FilePicker.Signifiers = ({ signifier, feedback, cls }) => { return null; }; -FilePicker.AcceptedFiles = ({ children, width, height, showFilezone, bgThemeColor }) => { - const styles = { - borderWidth: 1.5, - borderRadius: 2, - borderColor: '#42536A', - borderStyle: 'dashed', - color: '#bdbdbd', - outline: 'none', - padding: '5px', - overflowX: 'hidden', - overflowY: 'auto', - scrollbarWidth: 'none', - width, - height, - backgroundColor: bgThemeColor, - }; +FilePicker.AcceptedFiles = ({ children, showFilezone, style }) => { return ( -