From 960013d507dc6484cbc5cc1b6e8552aebd841234 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 31 Jan 2026 21:58:48 +0800 Subject: [PATCH] fix: move close button inside modal to prevent being hidden Co-authored-by: Cursor --- components/top-navbar.tsx | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/components/top-navbar.tsx b/components/top-navbar.tsx index f51ab693f..1ada41943 100644 --- a/components/top-navbar.tsx +++ b/components/top-navbar.tsx @@ -473,23 +473,24 @@ export function TopNavbar({ >
e.stopPropagation()} > - {/* 关闭按钮 */} - - - {/* 标题 */} -

{currentTutorialVideo.title}

+ {/* 标题栏 - 包含标题和关闭按钮 */} +
+
{/* 占位符保持标题居中 */} +

{currentTutorialVideo.title}

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