Skip to content

Commit 841429d

Browse files
Update history page loading background style (#2075)
* Refactor: Use CSS variable for history page background Co-authored-by: randerson <[email protected]> * Refactor history page loading indicator Co-authored-by: randerson <[email protected]> --------- Co-authored-by: Cursor Agent <[email protected]>
1 parent 003b9c7 commit 841429d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

special-pages/pages/history/public/index.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,15 @@
1111
}
1212
}
1313
</style>
14+
<script>
15+
// $LOADING_COLOR$ is replaced by native via string interpolation.
16+
// This script must be in <head> to block rendering and prevent flash of wrong color.
17+
const loadingColor = "$LOADING_COLOR$";
18+
const hasLoadingColor = !!loadingColor && !loadingColor.startsWith("$");
19+
if (hasLoadingColor) {
20+
document.documentElement.style.background = loadingColor;
21+
}
22+
</script>
1423
<title>History</title>
1524
<meta name="robots" content="noindex,nofollow">
1625
<meta name="viewport" content="width=device-width, initial-scale=1.0" />

0 commit comments

Comments
 (0)