R29: 标签列宽度 40px→60px(留出更多标签字符显示)

- style.css: th-tag/td-tag 40→60px
- index.html: ?v=20260903p→q
- cdp-verify-r29.mjs: 断言 thTagW/tagTdW 40→60; navigate 改为带 ?v= 强制加载新 CSS
- CDP PASS: thTagW=60 / tagTdW=60 / 视觉截断仍生效
This commit is contained in:
maogeigei committed 2026-09-03 16:22:01 +08:00
1 parent 2aa13bf900
commit 439e856ce2
3 files changed
+10 -9

No files matched your search

@@ -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 fail = (m) => { console.log('FAIL@' + m); process.exit(1); };
const goto = async (hash) => { await ev(`location.hash = ${JSON.stringify(hash)}`); await sleep(800); }; 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'); if (!(await waitFor(`!!document.querySelector('#view')`))) fail('app boot');
await ev(`document.querySelectorAll('.modal-mask').forEach((m) => m.remove())`); // 清 root 设置弹窗 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)); console.log(JSON.stringify(out, null, 1));
const ok = out && !out.__err const ok = out && !out.__err
&& out.ths.length === 9 && out.thTagIdx === 2 && out.likeIdx === 3 && out.durIdx === 7 && out.tagBeforeLike === true && 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.rowCells.length === 9 && out.rowCells[2].cls.includes('td-tag')
&& !!out.tagTdText && out.tagTdText.length > 0 && !!out.tagTdText && out.tagTdText.length > 0
&& !!out.tagTdTitle && out.tagTdTitle.includes('#') && out.tagTdTitle.length >= out.tagTdText.length && !!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 ==='); console.log(ok ? '\n=== PASS ===' : '\n=== CHECK ===');
ws.close(); ws.close();
process.exit(ok ? 0 : 1); process.exit(ok ? 0 : 1);
@@ -4,7 +4,7 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>MCN工作台</title> <title>MCN工作台</title>
<link rel="stylesheet" href="style.css?v=20260903p"> <link rel="stylesheet" href="style.css?v=20260903q">
<script src="vendor/echarts.min.js"></script> <script src="vendor/echarts.min.js"></script>
</head> </head>
<body> <body>
@@ -41,7 +41,7 @@
</div> </div>
</div> </div>
<script src="app.js?v=20260903p"></script> <script src="app.js?v=20260903q"></script>
<script src="data-pages.js?v=20260903p"></script> <script src="data-pages.js?v=20260903q"></script>
</body> </body>
</html> </html>
@@ -488,9 +488,9 @@ main#view { height: calc(100vh - 55px); overflow: auto; } /* 55px=topbar 实际
th.th-pub { width: 135px; } th.th-pub { width: 135px; }
td.td-pub { font-variant-numeric: tabular-nums; } td.td-pub { font-variant-numeric: tabular-nums; }
td.td-title { max-width: 240px; } td.td-title { max-width: 240px; }
/* 账号详情视频列表标签列:固定 40px,超长省略,悬停 title 显示完整标签 */ /* 账号详情视频列表标签列:固定 60px,超长省略,悬停 title 显示完整标签 */
.table th.th-tag { width: 40px; min-width: 40px; padding: 8px 2px; text-align: center; } .table th.th-tag { width: 60px; min-width: 60px; padding: 8px 2px; text-align: center; }
.table td.td-tag { max-width: 40px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 7px 2px; } .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) */ .persona-wrap { position: relative; } /* 账号设定内容左右无间隔(09-02 用户要求去掉 20px) */