From f0d2ea9d1492367c77f9e809ab57c8bfa6fb72b2 Mon Sep 17 00:00:00 2001 From: katelya Date: Fri, 5 Sep 2025 11:24:40 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=B0=83=E6=95=B4=20EpisodeSelector=20?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E6=A0=B7=E5=BC=8F=EF=BC=8C=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E5=B8=83=E5=B1=80=E5=92=8C=E4=BA=A4=E4=BA=92=E4=BD=93=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/play/page.tsx | 2 +- src/components/EpisodeSelector.tsx | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/app/play/page.tsx b/src/app/play/page.tsx index 66c1c88..03b2112 100644 --- a/src/app/play/page.tsx +++ b/src/app/play/page.tsx @@ -1632,7 +1632,7 @@ function PlayPageClient() { {/* 选集和换源 - 在移动端始终显示,在 lg 及以上可折叠 */}
= ({ return (
{/* 主要的 Tab 切换 - 无缝融入设计 */} -
+
{totalEpisodes > 1 && (
setActiveTab('episodes')} @@ -267,7 +267,7 @@ const EpisodeSelector: React.FC = ({ {activeTab === 'episodes' && ( <> {/* 分类标签 */} -
+
{categories.map((label, idx) => { @@ -320,8 +320,8 @@ const EpisodeSelector: React.FC = ({
- {/* 集数网格 */} -
+ {/* 集数网格 - 优化为10行×5列布局 */} +
{(() => { const len = currentEnd - currentStart + 1; const episodes = Array.from({ length: len }, (_, i) => @@ -338,10 +338,10 @@ const EpisodeSelector: React.FC = ({ e.stopPropagation(); handleEpisodeClick(episodeNumber); }} - className={`w-full h-8 flex items-center justify-center text-xs font-medium rounded transition-all duration-200 cursor-pointer + className={`w-full h-10 flex items-center justify-center text-sm font-medium rounded-lg transition-all duration-200 cursor-pointer ${ isActive - ? 'bg-green-500 text-white shadow-md shadow-green-500/25 dark:bg-green-600' + ? 'bg-green-500 text-white shadow-lg shadow-green-500/25 dark:bg-green-600' : 'bg-gray-200 text-gray-700 hover:bg-gray-300 hover:scale-105 dark:bg-white/10 dark:text-gray-300 dark:hover:bg-white/20' }`.trim()} type="button"