KarimMokhtar / react-drag-drop-files

Light and simple Reactjs drag and drop files library to use with very flexible options to change, so you put whatever the design you want for your drop-area. Users can drag and drop or even select the file anywhere in the window.
MIT License
245 stars 86 forks source link

Size bigger than children #132

Open tillbecks opened 10 months ago

tillbecks commented 10 months ago

Hello, i have the issue, that the component has the width of the whole screen, even if its children-component doesn't. That makes the hole screen to the right of the children component clickable (if its placed on the left edge). Is there a fix for it? It seems that I can't change the size of the component via css.. Thanks in advance

Griha3212 commented 9 months ago

@tillbecks for me helped adding this style to global styles of the app input[type="file"]{ width: 100%; }