From c84599096d867a8d708aaa329cf15a9e953f7fbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8C=97=E6=9E=B3?= <7854742+wang_rumeng@user.noreply.gitee.com> Date: Sat, 4 Oct 2025 19:34:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A7=E5=88=B6=E6=9C=80=E5=A4=A7=E9=AB=98?= =?UTF-8?q?=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/pages/work-flow/H5MediaViewer.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/pages/work-flow/H5MediaViewer.tsx b/components/pages/work-flow/H5MediaViewer.tsx index dba81ec..603ea4f 100644 --- a/components/pages/work-flow/H5MediaViewer.tsx +++ b/components/pages/work-flow/H5MediaViewer.tsx @@ -102,14 +102,14 @@ export function H5MediaViewer({ /** 视频轮播容器高度:按 aspectRatio 计算(基于视口宽度) */ const videoWrapperHeight = useMemo(() => { const { w, h } = parseAspect(aspectRatio); - return `calc(100vw * ${h} / ${w})`; + return `min(calc(100vw * ${h} / ${w}), calc(100vh - 8.5rem))`; }, [aspectRatio]); /** 图片轮播容器高度:默认 16:9 */ const imageWrapperHeight = useMemo(() => { // return 'calc(100vw * 9 / 16)'; const { w, h } = parseAspect(aspectRatio); - return `calc(100vw * ${h} / ${w})`; + return `min(calc(100vw * ${h} / ${w}), calc(100vh - 8.5rem))`; }, [aspectRatio]); // 计算当前阶段类型