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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user