From 729b4ba3028e7f3da36d9477b8942f475937cd80 Mon Sep 17 00:00:00 2001 From: AskaEth Date: Sun, 16 Aug 2026 21:13:06 +0800 Subject: [PATCH] fix: fixed media title height to avoid layout jump on lyrics change --- app/src/main/assets/h5/css/app.css | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/src/main/assets/h5/css/app.css b/app/src/main/assets/h5/css/app.css index 5bf74ad..65c6e78 100644 --- a/app/src/main/assets/h5/css/app.css +++ b/app/src/main/assets/h5/css/app.css @@ -257,12 +257,16 @@ body { overflow: hidden; } -/* 标题:自动换行(歌词/长标题),最多 3 行省略 */ -/* Title: wraps automatically (lyrics / long titles), max 3 lines with ellipsis */ +/* 标题:自动换行(歌词/长标题),最多 3 行省略; + 固定 3 行高度避免歌词长短变化导致下方进度条/按钮上下跳动 */ +/* Title: wraps automatically (lyrics / long titles), max 3 lines with ellipsis; + fixed 3-line height so the progress/controls below don't jump as lyrics change */ .media-card .tt { margin-top: 6px; font-size: 18px; font-weight: 600; + line-height: 1.3; + min-height: 3.9em; white-space: normal; word-break: break-word; display: -webkit-box;