From a5731fa963ef499156fc429ad064a4a6e25c582c Mon Sep 17 00:00:00 2001 From: truewhile <779943132@qq.com> Date: Tue, 15 Sep 2026 18:26:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/components/MediaCard.tsx | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/web/src/components/MediaCard.tsx b/web/src/components/MediaCard.tsx index fa1f2b1..a71f1dc 100644 --- a/web/src/components/MediaCard.tsx +++ b/web/src/components/MediaCard.tsx @@ -79,25 +79,18 @@ export const MediaCard = memo(function MediaCard({ )} - {/* Episode count badge */} - {count !== undefined && count > 1 && ( - - - {count} 集 + {/* Episode count badge:统一放右下角(桌面端与移动端一致),与左上角评分彻底错开 */} + {(count !== undefined && count > 1) || (count === undefined && versionCount > 1) ? ( + + + {count !== undefined && count > 1 ? `${count} 集` : `${versionCount} 版本`} - )} - - {count === undefined && versionCount > 1 && ( - - - {versionCount} 版本 - - )} + ) : null} {/* Rating Badge */} {displayRating > 0 && ( - - + + {displayRating.toFixed(1)} )}