diff --git a/src/app/play/page.tsx b/src/app/play/page.tsx index 4c65317..e308398 100644 --- a/src/app/play/page.tsx +++ b/src/app/play/page.tsx @@ -5351,29 +5351,10 @@ function PlayPageClient() { {/* 推荐区域 */} - {(videoDoubanId !== 0 || videoTitle) && ( -
-
- {/* 标题 */} -
-

- - - - 更多推荐 -

-
- - {/* 推荐内容 */} -
- -
-
-
- )} + {/* 豆瓣评论区域 */} {videoDoubanId !== 0 && enableComments && ( diff --git a/src/components/SmartRecommendations.tsx b/src/components/SmartRecommendations.tsx index 92506c2..97e42a3 100644 --- a/src/components/SmartRecommendations.tsx +++ b/src/components/SmartRecommendations.tsx @@ -238,35 +238,44 @@ export default function SmartRecommendations({ ); } - if (error) { - return ( -
- {error} -
- ); - } - - if (recommendations.length === 0) { + if (error || recommendations.length === 0) { return null; } return ( - - {recommendations.map((rec, index) => ( -
- +
+
+ {/* 标题 */} +
+

+ + + + 更多推荐 +

- ))} - + + {/* 推荐内容 */} +
+ + {recommendations.map((rec, index) => ( +
+ +
+ ))} +
+
+
+
); }