feat(hub): mobile AI one-screen and dashboard monitor counts
Fix mobile AI to scroll only in the chat area. Dashboard cards show monitor item counts with expand-to-fullscreen and color-coded position floating P&L.
This commit is contained in:
@@ -3618,6 +3618,22 @@
|
||||
window.addEventListener("popstate", setActiveNav);
|
||||
}
|
||||
|
||||
window.hubOpenMonitorExpand = function hubOpenMonitorExpand(exId) {
|
||||
const id = String(exId || "").trim();
|
||||
if (!id) return;
|
||||
expandedExchangeId = id;
|
||||
sessionStorage.setItem("hub_expanded_ex", id);
|
||||
if (currentPage() !== "monitor") {
|
||||
history.pushState({}, "", "/monitor");
|
||||
setActiveNav();
|
||||
}
|
||||
if (lastMonitorRows.length) {
|
||||
openExchangeFullscreen(id);
|
||||
} else {
|
||||
void fetchMonitorBoardSnapshot({ showLoading: true });
|
||||
}
|
||||
};
|
||||
|
||||
initAuth().then((ok) => {
|
||||
if (!ok) return;
|
||||
initShellNav();
|
||||
|
||||
Reference in New Issue
Block a user