fix(web-probe): 忽略任务短列表自然留白
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user