From 85977753ad4c175b35d01bea0feb5f31d2f832e6 Mon Sep 17 00:00:00 2001 From: lizzie Date: Thu, 30 Jul 2026 23:15:55 +0000 Subject: [PATCH] feat: fix 'duck resizing' video player bug, do not preload all videos Signed-off-by: lizzie --- src/webpage/file.ts | 1 + src/webpage/style.css | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/webpage/file.ts b/src/webpage/file.ts index f0d3138..8f91e18 100644 --- a/src/webpage/file.ts +++ b/src/webpage/file.ts @@ -158,6 +158,7 @@ class File { video.append(source); //source.type = this.content_type; video.controls = !temp; + video.preload = "metadata"; if (this.width) video.width = this.width; if (this.height) video.height = this.height; diff --git a/src/webpage/style.css b/src/webpage/style.css index 4070b15..ffeb39d 100644 --- a/src/webpage/style.css +++ b/src/webpage/style.css @@ -3151,8 +3151,10 @@ span .quote:last-of-type .quoteline { gap: 4px; flex-wrap: wrap; video { - max-height: 288px; - max-width: 288px; + min-height: 200px; + min-width: 200px; + max-height: 25%; + max-width: 50%; } } .embed {