From 876386ececb8124560f5e9603c1426132b333677 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 31 Jan 2026 21:51:35 +0800 Subject: [PATCH] fix: properly center video tutorial modal and fix featured image dialog overflow Co-authored-by: Cursor --- app/(chat)/featured/page.tsx | 10 +++++----- components/top-navbar.tsx | 29 +++++++++++++++++++++-------- 2 files changed, 26 insertions(+), 13 deletions(-) diff --git a/app/(chat)/featured/page.tsx b/app/(chat)/featured/page.tsx index 68e1fd1..44dd59d 100644 --- a/app/(chat)/featured/page.tsx +++ b/app/(chat)/featured/page.tsx @@ -311,17 +311,17 @@ export default function FeaturedPage() { {/* 图片预览对话框 */} - + {selectedImage && ( -
+
{/* 图片 */} -
+
{selectedImage.prompt {/* 精选标记 */} @@ -334,7 +334,7 @@ export default function FeaturedPage() {
{/* 信息区域 */} -
+
diff --git a/components/top-navbar.tsx b/components/top-navbar.tsx index 998cb75..77f8515 100644 --- a/components/top-navbar.tsx +++ b/components/top-navbar.tsx @@ -450,31 +450,44 @@ export function TopNavbar({ {/* 功能教程弹窗 - 全屏居中 */} {showTutorialModal && currentTutorialVideo && (
{ setShowTutorialModal(false); setCurrentTutorialVideo(null); }} >
e.stopPropagation()} > - {/* 关闭按钮 - 右上角 */} + {/* 关闭按钮 - 右上角固定 */} {/* 标题 */} -

{currentTutorialVideo.title}

+

{currentTutorialVideo.title}

{/* 视频播放器 */} {currentTutorialVideo.videoUrl.includes('youtube.com') || currentTutorialVideo.videoUrl.includes('youtu.be') ? (