fix(web-probe): 忽略任务短列表自然留白

This commit is contained in:
Codex
2026-07-13 14:31:49 +02:00
parent ea6c3e0551
commit 1468e56a6f
2 changed files with 52 additions and 2 deletions
@@ -410,8 +410,12 @@ function projectManagementPaneGapRows(projectSamples) {
const maxGapPx = maxNumber(severeGaps.map((item) => item.bottomGapPx));
const maxGapRatio = maxNumber(severeGaps.map((item) => item.bottomGapRatio));
const multiPane = severeGaps.length >= 2;
const singleExtreme = maxGapPx >= 240 && maxGapRatio >= 0.45;
if (!multiPane && !singleExtreme) continue;
const singlePrimaryPaneExtreme = severeGaps.some((item) =>
item.name !== "task-tree"
&& Number(item.bottomGapPx ?? 0) >= 240
&& Number(item.bottomGapRatio ?? 0) >= 0.45
);
if (!multiPane && !singlePrimaryPaneExtreme) continue;
const selectedTaskRefHash = sample?.projectManagement?.selectedTaskRef?.hash ?? null;
const isMdtodo = sample?.projectManagement?.pageKind === "project-management-mdtodo";
const isInitialEmptyDetail = isMdtodo && !selectedTaskRefHash;