fix(hub): improve mobile AI coach layout

Move new-chat button to top toolbar to prevent overlap, compact chrome, hide chrome when keyboard opens, and soften mobile tab styling.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-11 11:06:47 +08:00
parent 007e089121
commit c59a17f9ac
3 changed files with 153 additions and 33 deletions
+10 -2
View File
@@ -3314,8 +3314,16 @@
const botMode = (session && session.bot_mode) || aiSelectedBotMode || "trading";
if (title) {
const modeLabel = botMode === "general" ? "普通聊天" : "交易教练";
title.textContent =
session && session.title ? `${modeLabel} · ${session.title}` : modeLabel;
const sessionTitle = session && session.title ? String(session.title) : "";
if (isMobileLayout()) {
title.textContent = sessionTitle && sessionTitle !== "新对话"
? sessionTitle
: modeLabel;
} else {
title.textContent = sessionTitle
? `${modeLabel} · ${sessionTitle}`
: modeLabel;
}
}
const showPlaceholder =
!msgs.length && !options.pendingUser && !options.thinking;