aboutsummaryrefslogtreecommitdiffstats
path: root/src/client/Buttons.hx
diff options
context:
space:
mode:
authorRblSb <msrblsb@gmail.com>2025-01-18 08:37:21 +0300
committerRblSb <msrblsb@gmail.com>2025-01-19 03:34:49 +0300
commita30cc5643c1e8366d2e8743fbe7c01ce1a468111 (patch)
treee01a115b026342e180a84f3d0d22cdfda88d03ec /src/client/Buttons.hx
parent600101bb1d093c2f0402ddf38a407f140c4329ed (diff)
Make raw videos adaptive for aspect ratios
Sadly there is no info about video size for iframes, so they will be keeped as 16/9. Let me know if this change breaks anything.
Diffstat (limited to 'src/client/Buttons.hx')
-rw-r--r--src/client/Buttons.hx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/Buttons.hx b/src/client/Buttons.hx
index f5f26e8..dbcf759 100644
--- a/src/client/Buttons.hx
+++ b/src/client/Buttons.hx
@@ -116,7 +116,7 @@ class Buttons {
icon.setAttribute("name", "chevron-down");
style.display = "block";
final list = wrap.firstElementChild;
- wrap.style.height = outerHeight(list) + "px";
+ wrap.style.height = "15vh";
wrap.style.marginBottom = "1rem";
} else {
icon.setAttribute("name", "chevron-forward");
@@ -132,7 +132,7 @@ class Buttons {
else {
final wrap = ge("#userlist-wrap");
final list = wrap.firstElementChild;
- wrap.style.height = outerHeight(list) + "px";
+ wrap.style.height = "15vh";
}
// enable animation after page loads
Timer.delay(() -> {
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage