diff options
| author | RblSb <msrblsb@gmail.com> | 2025-01-18 08:37:21 +0300 |
|---|---|---|
| committer | RblSb <msrblsb@gmail.com> | 2025-01-19 03:34:49 +0300 |
| commit | a30cc5643c1e8366d2e8743fbe7c01ce1a468111 (patch) | |
| tree | e01a115b026342e180a84f3d0d22cdfda88d03ec /src/client/Buttons.hx | |
| parent | 600101bb1d093c2f0402ddf38a407f140c4329ed (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.hx | 4 |
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(() -> { |
