dsh-account-pool 0.2.3 → 0.2.4
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/lib/client.js +6 -4
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -1042,15 +1042,17 @@ window.__ModuleLoader__.load({ id: "dsh-account-pool", factory: (require) => {
|
|
|
1042
1042
|
}, busy ? "刷新中…" : "刷新"),
|
|
1043
1043
|
),
|
|
1044
1044
|
|
|
1045
|
-
// ----
|
|
1046
|
-
// 用 grid 而不是 flex-wrap:wrap
|
|
1045
|
+
// ---- 核心指标:一行铺满 ----
|
|
1046
|
+
// 用 grid 而不是 flex-wrap:wrap 在窄面板里会把最后一块挤到下一行,
|
|
1047
1047
|
// grid 的 1fr 会按可用宽度均分,永远保持一行。
|
|
1048
|
+
//
|
|
1049
|
+
// 列数必须跟着**实际指标数**走。之前只换类名、内联仍是 4 列,
|
|
1050
|
+
// 去掉积分后 Trae 就变成「3 个块占 4 列」——右边空一格,很难看。
|
|
1048
1051
|
h("div", {
|
|
1049
|
-
// 少一个指标时用 3 列网格,避免留下一个空位
|
|
1050
1052
|
className: reportsCredits ? "wb-kpi-grid-4" : "wb-kpi-grid-3",
|
|
1051
1053
|
style: {
|
|
1052
1054
|
display: "grid",
|
|
1053
|
-
gridTemplateColumns: "repeat(4, minmax(0, 1fr))",
|
|
1055
|
+
gridTemplateColumns: "repeat(" + (reportsCredits ? 4 : 3) + ", minmax(0, 1fr))",
|
|
1054
1056
|
gap: "8px",
|
|
1055
1057
|
marginBottom: "8px",
|
|
1056
1058
|
},
|