I set accpetedFile to only csv files and removable link to true, so there's a link to remove the file under the thumbnail. When an user uploads a file that is not a csv, the error message that shows up, saying "You can't upload file of this kind" when the user hovers over the file thumbnail covers the removable link.
我将accpetedFile设置为仅csv文件和可移动链接为true,因此有一个链接可以删除缩略图下的文件。当用户上传不是csv的文件时,当用户将鼠标悬停在文件缩略图上时,显示的错误消息“无法上传此类文件”覆盖可移动链接。
It seems like the "hover zone" covers more than the thumbnail, including the removable link. What should I config in dropzone.js in order to make the "hover zone" smaller, so the user can click on the link to remove the file?
似乎“悬停区域”涵盖的内容多于缩略图,包括可移动链接。我应该在dropzone.js中配置什么才能使“悬停区域”变小,这样用户可以点击链接删除文件?
1 个解决方案
#1
2
I found it. Look for .dropzone .dz-preview .dz-error-message in the css file and change accordingly.
我找到了。在css文件中查找.dropzone .dz-preview .dz-error-message并进行相应更改。
#1
2
I found it. Look for .dropzone .dz-preview .dz-error-message in the css file and change accordingly.
我找到了。在css文件中查找.dropzone .dz-preview .dz-error-message并进行相应更改。