aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchaibiq <chaibuikie@gmail.com>2024-04-16 03:59:36 +0000
committerchaibiq <chaibuikie@gmail.com>2024-04-16 03:59:36 +0000
commit41744b43f353e2f844c692d1fcb0917e7564e43d (patch)
tree5bd1201793c715db4077c652c67c8c82807dd859
parentAdd CHANGELOG entry for #1379 (diff)
downloadminiserve-41744b43f353e2f844c692d1fcb0917e7564e43d.tar.gz
miniserve-41744b43f353e2f844c692d1fcb0917e7564e43d.zip
fix missing drag-form when dragging file in to browser
-rw-r--r--data/style.scss2
-rw-r--r--src/renderer.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/data/style.scss b/data/style.scss
index 37e2239..32d2989 100644
--- a/data/style.scss
+++ b/data/style.scss
@@ -420,7 +420,7 @@ th span.active span {
justify-content: space-between;
}
-.form {
+.form, .drag-form {
display: none;
background: var(--drag_background);
position: absolute;
diff --git a/src/renderer.rs b/src/renderer.rs
index b691bca..3935d98 100644
--- a/src/renderer.rs
+++ b/src/renderer.rs
@@ -59,7 +59,7 @@ pub fn page(
{
div.toolbar_box_group {
@if conf.file_upload {
- div.form {
+ div.drag-form {
div.form_title {
h1 { "Drop your file here to upload it" }
}