1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-24 23:59:48 +02:00

Fix border in card modal

This commit is contained in:
Maksim Eltyshev 2020-05-23 18:05:22 +05:00
parent efd4de4000
commit fb9ceb5db7
3 changed files with 10 additions and 6 deletions

View file

@ -83,9 +83,11 @@ const AddAttachmentZone = React.memo(({ children, onCreate }) => {
return (
<>
{/* eslint-disable-next-line react/jsx-props-no-spreading */}
<div {...getRootProps()}>
<div {...getRootProps()} className={styles.wrapper}>
{isDragActive && <div className={styles.dropzone}>{t('common.dropFileToUpload')}</div>}
{children}
{/* eslint-disable-next-line react/jsx-props-no-spreading */}
<input {...getInputProps()} />
</div>
{modal && (
<AddTextFileModal
@ -94,8 +96,6 @@ const AddAttachmentZone = React.memo(({ children, onCreate }) => {
onClose={handleModalClose}
/>
)}
{/* eslint-disable-next-line react/jsx-props-no-spreading */}
<input {...getInputProps()} />
</>
);
});