R62: 帮助页修复—①buildOverlay 调 cleanupGuide 致 guide=null 引导从未生效(去冗余清理, startGuide 已清) ②帮助卡固定一行2个(全屏不再3列, 窄屏1列; style?g help-guide?c)
This commit is contained in:
1 parent
ddcdb3a652
commit
736b1cc7e1
3 files changed
+6
-4
No files matched your search
@@ -379,7 +379,8 @@
|
||||
}
|
||||
|
||||
function buildOverlay() {
|
||||
cleanupGuide();
|
||||
/* 注意:不要在此调 cleanupGuide()——它会把 guide 置 null,导致下方 guide.mask 赋值抛错。
|
||||
旧引导清理由调用方 startGuide(入口处 if (guide) cleanupGuide())负责;新建 mask/pop 挂到当前 guide */
|
||||
const mask = document.createElement('div');
|
||||
mask.className = 'g-mask';
|
||||
mask.style.zIndex = String(GUIDE_Z);
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>短视频工作台</title>
|
||||
<link rel="stylesheet" href="style.css?v=20260904f">
|
||||
<link rel="stylesheet" href="style.css?v=20260904g">
|
||||
<script src="vendor/echarts.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
@@ -42,7 +42,7 @@
|
||||
</div>
|
||||
|
||||
<script src="app.js?v=20260904e"></script>
|
||||
<script src="help-guide.js?v=20260904b"></script>
|
||||
<script src="help-guide.js?v=20260904c"></script>
|
||||
<script src="data-pages.js?v=20260904l"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -738,7 +738,8 @@ td.td-title { max-width: 240px; }
|
||||
.help-head-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; flex: none; }
|
||||
.help-head h2 { font-size: 22px; margin-bottom: 4px; }
|
||||
.help-head-sub { color: var(--dim); font-size: 15px; }
|
||||
.help-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
|
||||
.help-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } /* 09-04 用户定稿:卡片固定一行 2 个(全屏不再 auto-fill 变 3 列);窄视口降 1 列 */
|
||||
@media (max-width: 820px) { .help-grid { grid-template-columns: 1fr; } }
|
||||
.help-card {
|
||||
background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
|
||||
padding: 16px 18px; box-shadow: var(--shadow);
|
||||
|
||||
Reference in new issue
Block a user