fix(hub): keep AI coach page within one viewport

Lock page height and scroll summary/chat inside equal panels instead of extending the document.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-07 00:15:40 +08:00
parent ebadcb1119
commit 821e260912
3 changed files with 77 additions and 14 deletions
+1
View File
@@ -647,6 +647,7 @@
document.querySelectorAll(".page").forEach((el) => {
el.classList.toggle("hidden", el.id !== pageId);
});
document.body.classList.toggle("hub-page-ai", page === "ai");
if (page === "monitor") startMonitorPoll();
else stopMonitorPoll();
if (page === "settings") loadSettingsUI();