aboutsummaryrefslogtreecommitdiffstats
path: root/src/client
diff options
context:
space:
mode:
Diffstat (limited to 'src/client')
-rw-r--r--src/client/Buttons.hx6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/client/Buttons.hx b/src/client/Buttons.hx
index 071db16..cf1246d 100644
--- a/src/client/Buttons.hx
+++ b/src/client/Buttons.hx
@@ -201,6 +201,12 @@ class Buttons {
&& main.isSingleVideoLink(value);
ge("#mediatitleblock").style.display = isRawSingleVideo ? "" : "none";
ge("#subsurlblock").style.display = isRawSingleVideo ? "" : "none";
+ final panel = ge("#addfromurl");
+ final oldH = panel.style.height; // save for animation
+ panel.style.height = ""; // to calculate height from content
+ final newH = outerHeight(panel) + "px";
+ panel.style.height = oldH;
+ Timer.delay(() -> panel.style.height = newH, 0);
}
mediaUrl.onfocus = mediaUrl.oninput;
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage