opt: video width

Closes #417

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-03-10 15:41:39 +08:00
parent 2ce79d21b5
commit 5cc661e314

View File

@@ -1207,7 +1207,8 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
);
}
double videoWidth =
max(context.height / context.width * 1.04, 1 / 2) * context.width;
clampDouble(context.height / context.width * 1.04, 0.5, 0.7) *
context.width;
if (context.width >= 560) {
videoWidth = min(videoWidth, context.width - 280);
}