From b57aca347d4076f995e8849c5cc47c41e9cfd6c2 Mon Sep 17 00:00:00 2001 From: RblSb Date: Wed, 18 Jan 2023 00:30:24 +0300 Subject: Fix url panel overflow --- src/client/Buttons.hx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') 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; -- cgit v1.2.3