mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: video width
Closes #417 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user