From d3eef19b950fd33a6739512732376a5959b5e65d Mon Sep 17 00:00:00 2001 From: unknown Date: Sun, 6 Sep 2026 11:12:13 +0800 Subject: [PATCH] fix(single): match the reference video cover height (bare ratio) Zibll reserves +50px only for covers whose title overlays them (image/slide via .single-cover/.single-cover-slide); the video cover keeps its title in the footer below and uses the bare scale height (.dplayer-scale-height). Drop the +50px from the video box, pin the reference height matrix in the contract test, and refresh the stale slide-action assertion in the toast contract. --- inc/helpers/aksrt-single-render.php | 5 ++++- .../single-cover-height-contract.test.cjs | 19 +++++++++++-------- tests/widget-system/toast-contract.test.cjs | 7 ++++--- 3 files changed, 19 insertions(+), 12 deletions(-) diff --git a/inc/helpers/aksrt-single-render.php b/inc/helpers/aksrt-single-render.php index 7b185ff5..4923404d 100644 --- a/inc/helpers/aksrt-single-render.php +++ b/inc/helpers/aksrt-single-render.php @@ -28,10 +28,13 @@ if (!function_exists('aksrt_single_render_cover')) : $title_html = (string) ($ctx['title_html'] ?? esc_html(get_the_title())); if ($type === 'video') : + // 视频封面高度为裸比例(对齐参考主题 .dplayer-scale-height 契约): + // 标题/面包屑在下方 .single-video-footer,不叠加封面,无 +50px 补偿; + // 单图/多图封面标题叠加封面,才需要 calc(scale% + 50px)。 ?>
-
+
style="position:absolute;inset:0;width:100%;height:100%;">