mirror of https://github.com/usememos/memos.git
feat: make file uplaod support drag/drop (#1129)
This commit is contained in:
parent
29b5c393d1
commit
bbc5ac9f0e
|
|
@ -170,7 +170,7 @@ const CreateResourceDialog: React.FC<Props> = (props: Props) => {
|
|||
Choose a file...
|
||||
</label>
|
||||
<input
|
||||
className="absolute inset-0 hidden"
|
||||
className="absolute inset-0 w-full h-full opacity-0"
|
||||
ref={fileInputRef}
|
||||
onChange={handleFileInputChange}
|
||||
type="file"
|
||||
|
|
|
|||
Loading…
Reference in New Issue