修复中控内嵌顶栏变形:整页导航包进 top-nav-links,embed=1 仍进壳。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-10-03 08:03:15 +08:00
parent 2903a3ac7f
commit 9d3effd6fc
6 changed files with 41 additions and 24 deletions
+2
View File
@@ -171,6 +171,8 @@
function patchHubNavLinks(theme) {
if (!isHubLinked()) return;
// embed 壳由 InstanceEmbed 软切 tab,勿改写为 /xxx?embed=1(会绕开壳落到 index 顶栏变形)
if (document.body && document.body.getAttribute("data-embed-shell") === "1") return;
const t = normalize(theme || get());
document
.querySelectorAll(".top-nav a[href], .strategy-subnav a[href]")