Split risk policy into its own navigation tab.

Move read-only risk control docs to /risk_policy before settings; keep transfers and exports on the settings page.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-08 19:42:29 +08:00
parent fd6391b734
commit d84a265b67
14 changed files with 126 additions and 80 deletions
+3 -2
View File
@@ -11,6 +11,7 @@
options: "/options",
records: "/records",
stats: "/stats",
risk_policy: "/risk_policy",
settings: "/settings",
};
@@ -242,9 +243,9 @@
}
function syncShellChrome(tab) {
const onSettings = tab === "settings";
const hideTopBar = tab === "settings" || tab === "risk_policy";
document.querySelectorAll(".instance-top-bar").forEach((el) => {
el.hidden = onSettings;
el.hidden = hideTopBar;
});
}
+13
View File
@@ -2181,6 +2181,19 @@ html[data-theme="light"] .journal-detail-img-thumb {
background: #eef2f7;
}
/* ── 风控说明页 ── */
.risk-policy-page {
margin-top: 12px;
}
.settings-page--ops {
max-width: 720px;
}
.settings-page--ops .settings-card--side-panel {
height: auto;
}
/* ── 系统设置页 ── */
.settings-page {
margin-top: 12px;