diff --git a/filed/static/dragndrop-form.js b/filed/static/dragndrop-form.js index 8289ef4..8684bbc 100644 --- a/filed/static/dragndrop-form.js +++ b/filed/static/dragndrop-form.js @@ -26,6 +26,10 @@ input_el.files = transfer.files; } + root_drag_rop.onclick = e => { + input_el.click(); + } + input_el.onchange = e => { const file = input_el.files[0] selectFile(file); diff --git a/filed/static/paint.css b/filed/static/paint.css index 84bf5b1..52cd426 100644 --- a/filed/static/paint.css +++ b/filed/static/paint.css @@ -148,13 +148,15 @@ p { .file-drag-n-drop { display: block; cursor: pointer; - width: 400px; - height: 400px; + width: 440px; + height: 440px; background: var(--header-sec-color); border-radius: 16px; padding: var(--header-padding-x); transition: 250ms ease; margin-bottom: 0; + border: 0px solid transparent; + color: var(--header-fg-color); } .file-drag-n-drop:hover { background: #393939; diff --git a/filed/templates/index.html b/filed/templates/index.html index e1bbaa5..2fcb6d4 100644 --- a/filed/templates/index.html +++ b/filed/templates/index.html @@ -31,14 +31,16 @@
+ + + + file.blek.codes/ + + +
@@ -46,10 +48,10 @@ Select a file - +
diff --git a/filed/templates/text-x-generic.svg b/filed/templates/text-x-generic.svg index c38478d..9d1eca2 100644 --- a/filed/templates/text-x-generic.svg +++ b/filed/templates/text-x-generic.svg @@ -1,5 +1,5 @@ -