Fix header funds flicker and unify settings page top bar.

Preserve SSR fund values when account_snapshot returns null, retry on failure, and show the same instance header panel on system settings.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-08 19:08:08 +08:00
parent 279648de56
commit 0d27e13275
8 changed files with 236 additions and 190 deletions
+4 -1
View File
@@ -99,6 +99,9 @@
if (typeof global.initStatsSegmentFromUrl === "function") global.initStatsSegmentFromUrl();
}
if (!revisit) {
if (typeof global.refreshAccountSnapshot === "function") {
global.refreshAccountSnapshot({ silent: true });
}
if (typeof global.refreshPriceSnapshotConditional === "function") {
global.refreshPriceSnapshotConditional();
}
@@ -240,7 +243,7 @@
function syncShellChrome(tab) {
const onSettings = tab === "settings";
document.querySelectorAll(".instance-header-panel, .instance-top-bar").forEach((el) => {
document.querySelectorAll(".instance-top-bar").forEach((el) => {
el.hidden = onSettings;
});
}