siluzan-tso-cli 1.1.60-beta.1 → 1.1.60-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -51,7 +51,7 @@ siluzan-tso init -d /path/to/skills # 写入自定义目录
51
51
  siluzan-tso init --force # 强制覆盖已存在文件
52
52
  ```
53
53
 
54
- > **注意**:当前为测试版(1.1.60-beta.1),供内部测试使用。正式发布后安装命令将改为 `npm install -g siluzan-tso-cli`。
54
+ > **注意**:当前为测试版(1.1.60-beta.2),供内部测试使用。正式发布后安装命令将改为 `npm install -g siluzan-tso-cli`。
55
55
 
56
56
  | 助手 | 建议 `--ai` |
57
57
  | ----------------------- | ------------------------------------ |
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "slug": "siluzan-tso",
3
- "version": "1.1.60-beta.1",
4
- "publishedAt": 1793157724295
3
+ "version": "1.1.60-beta.2",
4
+ "publishedAt": 1793166137031
5
5
  }
@@ -360,10 +360,34 @@
360
360
  .table-wrap {
361
361
  border: 1px solid var(--border);
362
362
  border-radius: var(--radius-md);
363
- overflow: hidden;
363
+ /* 列多时在表内横向滚动,避免右侧指标被裁掉 */
364
+ overflow-x: auto;
365
+ -webkit-overflow-scrolling: touch;
366
+ scrollbar-width: thin;
367
+ scrollbar-color: #94a3b8 transparent;
368
+ }
369
+ .table-wrap::-webkit-scrollbar {
370
+ height: 8px;
371
+ }
372
+ .table-wrap::-webkit-scrollbar-thumb {
373
+ background: #94a3b8;
374
+ border-radius: 8px;
375
+ }
376
+ .table-wrap.is-scrollable {
377
+ box-shadow: inset -16px 0 12px -14px rgba(15, 23, 42, 0.28);
378
+ }
379
+ .table-wrap.is-scrollable::after {
380
+ content: "左右滑动查看其余列";
381
+ position: sticky;
382
+ left: 0;
383
+ display: block;
384
+ padding: 6px 12px 8px;
385
+ font-size: 0.75rem;
386
+ color: var(--muted);
364
387
  }
365
388
  table {
366
- width: 100%;
389
+ width: max-content;
390
+ min-width: 100%;
367
391
  border-collapse: collapse;
368
392
  font-size: 0.86rem;
369
393
  }
@@ -374,6 +398,14 @@
374
398
  border-bottom: 1px solid var(--border);
375
399
  white-space: nowrap;
376
400
  }
401
+ /* 名称列换行,避免一条长标题把消耗/点击/转化挤出视口 */
402
+ th:not(.num),
403
+ td:not(.num) {
404
+ white-space: normal;
405
+ word-break: break-word;
406
+ min-width: 6em;
407
+ max-width: 18em;
408
+ }
377
409
  td {
378
410
  color: var(--text-dim);
379
411
  }
@@ -592,6 +624,19 @@
592
624
  display: none !important;
593
625
  content: none !important;
594
626
  }
627
+ .table-wrap {
628
+ overflow: visible;
629
+ }
630
+ .table-wrap table {
631
+ width: 100%;
632
+ }
633
+ th:not(.num),
634
+ td:not(.num),
635
+ th.num,
636
+ td.num {
637
+ white-space: normal;
638
+ max-width: none;
639
+ }
595
640
  }
596
641
  </style>
597
642
  </head>
@@ -1354,6 +1399,18 @@ ${titleNotice}
1354
1399
  ].join("\n");
1355
1400
  renderCharts(data);
1356
1401
  setupScrollSpy();
1402
+ markScrollableTables();
1403
+ }
1404
+
1405
+ /** 表格比视口宽时标出来,提示左右滑动,避免右侧指标被看成「没有」。 */
1406
+ function markScrollableTables() {
1407
+ const mark = () => {
1408
+ document.querySelectorAll(".table-wrap").forEach((el) => {
1409
+ el.classList.toggle("is-scrollable", el.scrollWidth > el.clientWidth + 1);
1410
+ });
1411
+ };
1412
+ mark();
1413
+ window.addEventListener("resize", mark);
1357
1414
  }
1358
1415
 
1359
1416
  if (document.readyState === "loading") {
@@ -9,7 +9,7 @@ $ErrorActionPreference = 'Stop'
9
9
  # -- Package info (injected at build time) ------------------------------------
10
10
  $PKG_NAME = 'siluzan-tso-cli'
11
11
  # PKG_VERSION 锁定到与本脚本同批构建产物一致的版本,避免与 dist/skill 错位
12
- $PKG_VERSION = '1.1.60-beta.1'
12
+ $PKG_VERSION = '1.1.60-beta.2'
13
13
  $CLI_BIN = 'siluzan-tso'
14
14
  $SKILL_LABEL = 'Siluzan TSO'
15
15
  $INSTALL_CMD = 'npm install -g siluzan-tso-cli@beta'
@@ -9,7 +9,7 @@ set -euo pipefail
9
9
  # -- Package info (injected at build time) ------------------------------------
10
10
  readonly PKG_NAME="siluzan-tso-cli"
11
11
  # PKG_VERSION 锁定到与本脚本同批构建产物一致的版本,避免与 dist/skill 错位
12
- readonly PKG_VERSION="1.1.60-beta.1"
12
+ readonly PKG_VERSION="1.1.60-beta.2"
13
13
  readonly CLI_BIN="siluzan-tso"
14
14
  readonly SKILL_LABEL="Siluzan TSO"
15
15
  readonly INSTALL_CMD="npm install -g siluzan-tso-cli@beta"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "siluzan-tso-cli",
3
- "version": "1.1.60-beta.1",
3
+ "version": "1.1.60-beta.2",
4
4
  "description": "Siluzan 广告账户管理 CLI — 查询账户、余额、消耗数据,管理绑定关系与充值。",
5
5
  "keywords": [
6
6
  "ad-account",