From 7e82aaf843d42b6dcae21f7a665da68e71dddeaa Mon Sep 17 00:00:00 2001
From: ed
Date: Sat, 20 Nov 2021 00:03:15 +0100
Subject: [PATCH] simplify/improve up2k ui debounce
---
copyparty/web/browser.css | 10 ++++++----
copyparty/web/browser.js | 4 ++--
copyparty/web/up2k.js | 17 +++++++----------
3 files changed, 15 insertions(+), 16 deletions(-)
diff --git a/copyparty/web/browser.css b/copyparty/web/browser.css
index 8054cf4e..a8614879 100644
--- a/copyparty/web/browser.css
+++ b/copyparty/web/browser.css
@@ -1666,8 +1666,6 @@ html.light #bbox-overlay figcaption a {
#op_up2k {
padding: 0 1em 1em 1em;
- min-height: 0;
- transition: min-height .2s;
}
#drops {
display: none;
@@ -1832,13 +1830,17 @@ html.light #u2err.err {
#u2notbtn * {
line-height: 1.3em;
}
+#u2tabw {
+ min-height: 0;
+ transition: min-height .2s;
+ margin: 3em auto;
+}
#u2tab {
border-collapse: collapse;
- margin: 3em auto;
width: calc(100% - 2em);
max-width: 100em;
}
-#op_up2k.srch #u2tab {
+#op_up2k.srch #u2tabf {
max-width: none;
}
#u2tab td {
diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js
index ef19fed8..9369e7d3 100644
--- a/copyparty/web/browser.js
+++ b/copyparty/web/browser.js
@@ -117,7 +117,7 @@ ebi('op_up2k').innerHTML = (
'\n' +
- '\n' +
+ '
\n' +
'\n' +
' \n' +
'
\n' +
+ '\n' +
' \n' +
' \n' +
' \n' +
- 'filename \n' +
@@ -126,7 +126,7 @@ ebi('op_up2k').innerHTML = (
'
the files were added to the queue
however there is a busy up2k in another browser tab,
so waiting for that to finish first