diff --git a/src/app/play/page.tsx b/src/app/play/page.tsx index 1bf928d..c0228d1 100644 --- a/src/app/play/page.tsx +++ b/src/app/play/page.tsx @@ -2990,35 +2990,7 @@ function PlayPageClient() { )} - {/* 弹幕源切换按钮 - 当有弹幕加载完成且不在加载中时显示 */} - {!danmakuLoading && currentDanmakuSelection && ( -
- -
- )} + {/* 第三方应用打开按钮 */} diff --git a/src/components/DanmakuPanel.tsx b/src/components/DanmakuPanel.tsx index f69f8c8..1e9276b 100644 --- a/src/components/DanmakuPanel.tsx +++ b/src/components/DanmakuPanel.tsx @@ -124,7 +124,7 @@ export default function DanmakuPanel({ }, [videoTitle, searchKeyword]); return ( -
+
{/* 搜索区域 */}
@@ -138,22 +138,30 @@ export default function DanmakuPanel({ } }} placeholder='输入动漫名称搜索弹幕...' - className='flex-1 rounded-lg border border-gray-300 px-4 py-2 text-sm + className='flex-1 rounded-lg border border-gray-300 px-3 py-2 text-sm transition-colors focus:border-green-500 focus:outline-none focus:ring-2 focus:ring-green-500/20 - dark:border-gray-600 dark:bg-gray-800 dark:text-white' + dark:border-gray-600 dark:bg-gray-800 dark:text-white + sm:px-4' disabled={isSearching} />
@@ -187,7 +195,7 @@ export default function DanmakuPanel({
{/* 内容区域 */} -
+
{/* 显示剧集列表 */} {selectedAnime && (
@@ -217,7 +225,7 @@ export default function DanmakuPanel({ {/* 剧集网格 */} {!isLoadingEpisodes && episodes.length > 0 && ( -
+
{episodes.map((episode) => { const isSelected = isEpisodeSelected(episode.episodeId); return ( @@ -250,7 +258,7 @@ export default function DanmakuPanel({ {/* 显示搜索结果 */} {!selectedAnime && searchResults.length > 0 && ( -
+
{searchResults.map((anime) => (
= ({ {/* 弹幕 Tab 内容 */} {activeTab === 'danmaku' && onDanmakuSelect && ( - +
+ +
)} {/* 选集 Tab 内容 */}