Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

feat: make file uplaod support drag/drop (#1129)

Yoshino-sbbc5ac9f0ea1
diff --git a/web/src/components/CreateResourceDialog.tsx b/web/src/components/CreateResourceDialog.tsx
index 6d5e36545..e3aba1277 100644
--- a/web/src/components/CreateResourceDialog.tsx
+++ b/web/src/components/CreateResourceDialog.tsx
@@ -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"