From f8b5de0aafae6839ed08aa604440816399d6a3f9 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 31 Jan 2026 21:48:10 +0800 Subject: [PATCH] fix: remove dropdown title, improve video modal centering Co-authored-by: Cursor --- components/top-navbar.tsx | 38 ++++++++++++++++++-------------------- 1 file changed, 18 insertions(+), 20 deletions(-) diff --git a/components/top-navbar.tsx b/components/top-navbar.tsx index 4d7d4c012..998cb7549 100644 --- a/components/top-navbar.tsx +++ b/components/top-navbar.tsx @@ -276,9 +276,6 @@ export function TopNavbar({ -
- 选择教程视频 -
{tutorialVideos .sort((a, b) => a.order - b.order) @@ -450,33 +447,34 @@ 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') ? (