diff --git a/project/短视频脚本创作/V1.0/mcn-work-shop/cdp-verify-r29.mjs b/project/短视频脚本创作/V1.0/mcn-work-shop/cdp-verify-r29.mjs index cd2c489..bdbf800 100644 --- a/project/短视频脚本创作/V1.0/mcn-work-shop/cdp-verify-r29.mjs +++ b/project/短视频脚本创作/V1.0/mcn-work-shop/cdp-verify-r29.mjs @@ -14,7 +14,8 @@ const waitFor = async (expr, ms = 15000) => { const t0 = Date.now(); while (Date const fail = (m) => { console.log('FAIL@' + m); process.exit(1); }; const goto = async (hash) => { await ev(`location.hash = ${JSON.stringify(hash)}`); await sleep(800); }; -await send('Page.navigate', { url: 'http://localhost:8900/#/' }); +await send('Page.navigate', { url: 'http://localhost:8900/?v=' + Date.now() }); +await new Promise((r) => setTimeout(r, 2000)); // 等所有资源加载(含带版本号的 style.css/data.js) if (!(await waitFor(`!!document.querySelector('#view')`))) fail('app boot'); await ev(`document.querySelectorAll('.modal-mask').forEach((m) => m.remove())`); // 清 root 设置弹窗 @@ -46,11 +47,11 @@ const out = await ev(`(() => { console.log(JSON.stringify(out, null, 1)); const ok = out && !out.__err && out.ths.length === 9 && out.thTagIdx === 2 && out.likeIdx === 3 && out.durIdx === 7 && out.tagBeforeLike === true - && out.thTagW === 40 + && out.thTagW === 60 && out.rowCells.length === 9 && out.rowCells[2].cls.includes('td-tag') && !!out.tagTdText && out.tagTdText.length > 0 && !!out.tagTdTitle && out.tagTdTitle.includes('#') && out.tagTdTitle.length >= out.tagTdText.length - && out.tagTdClips === true && out.tagTdW === 40 && out.hasNumClass === false; + && out.tagTdClips === true && out.tagTdW === 60 && out.hasNumClass === false; console.log(ok ? '\n=== PASS ===' : '\n=== CHECK ==='); ws.close(); process.exit(ok ? 0 : 1); diff --git a/project/短视频脚本创作/V1.0/mcn-work-shop/public/index.html b/project/短视频脚本创作/V1.0/mcn-work-shop/public/index.html index 21c4607..9a78983 100644 --- a/project/短视频脚本创作/V1.0/mcn-work-shop/public/index.html +++ b/project/短视频脚本创作/V1.0/mcn-work-shop/public/index.html @@ -4,7 +4,7 @@ MCN工作台 - + @@ -41,7 +41,7 @@ - - + + diff --git a/project/短视频脚本创作/V1.0/mcn-work-shop/public/style.css b/project/短视频脚本创作/V1.0/mcn-work-shop/public/style.css index a3e52dd..14651cd 100644 --- a/project/短视频脚本创作/V1.0/mcn-work-shop/public/style.css +++ b/project/短视频脚本创作/V1.0/mcn-work-shop/public/style.css @@ -488,9 +488,9 @@ main#view { height: calc(100vh - 55px); overflow: auto; } /* 55px=topbar 实际 th.th-pub { width: 135px; } td.td-pub { font-variant-numeric: tabular-nums; } td.td-title { max-width: 240px; } -/* 账号详情视频列表标签列:固定 40px,超长省略,悬停 title 显示完整标签 */ -.table th.th-tag { width: 40px; min-width: 40px; padding: 8px 2px; text-align: center; } -.table td.td-tag { max-width: 40px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 7px 2px; } +/* 账号详情视频列表标签列:固定 60px,超长省略,悬停 title 显示完整标签 */ +.table th.th-tag { width: 60px; min-width: 60px; padding: 8px 2px; text-align: center; } +.table td.td-tag { max-width: 60px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 7px 2px; } /* ================= 账号设定 卡片版/文字版 切换(右上角图标按钮组) ================= */ .persona-wrap { position: relative; } /* 账号设定内容左右无间隔(09-02 用户要求去掉 20px) */