feat(ui): refine download controls and package motion
Move the global package disclosure action into a responsive right-aligned toolbar group and disable it for empty queues. Replace the decorative package title with a compact neutral filter group, coordinate disclosure opacity with height transitions, and make contextual help follow combined pointer and keyboard focus state.
This commit is contained in:
@@ -62,7 +62,7 @@ function itemGroup(
|
||||
packageId,
|
||||
items: items.map((row) => ({ ...row, height: DOWNLOAD_FILE_ROW_HEIGHT })),
|
||||
height,
|
||||
disclosureOpacity: 1,
|
||||
disclosureOpacity: phase === "entering" ? 0 : 1,
|
||||
disclosurePhase: phase
|
||||
};
|
||||
}
|
||||
@@ -197,8 +197,8 @@ export function activateDownloadDisclosureTransition(rows: readonly DownloadDisc
|
||||
return rows.map((row) => {
|
||||
if (row.type !== "item-group") return row;
|
||||
return row.disclosurePhase === "entering"
|
||||
? { ...row, height: row.items.length * DOWNLOAD_FILE_ROW_HEIGHT }
|
||||
: { ...row, height: 0 };
|
||||
? { ...row, height: row.items.length * DOWNLOAD_FILE_ROW_HEIGHT, disclosureOpacity: 1 }
|
||||
: { ...row, height: 0, disclosureOpacity: 0 };
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user