The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.
TypeScript ai-videocomfyuicreative-toolsgenerative-aiideogramimage-generationimage-to-3dimage-to-videoltx-videominimax-h3nextjsopen-sourceopen-weightsqwen-imagetext-to-imagevideo-generationwan
Library: the selection bar keeps every action and Select all at 390 px
Claude328f1b616209
diff --git a/src/components/library-view.tsx b/src/components/library-view.tsxindex 58e04bbc..4a0b899d 100644--- a/src/components/library-view.tsx+++ b/src/components/library-view.tsx@@ -857,7 +857,8 @@ function SectionSelect({ label, ids, selected, quiet, onToggle }: { label: strin);}-const BAR = "inline-flex h-8 shrink-0 items-center gap-1.5 rounded-full px-2.5 text-[13px] font-medium whitespace-nowrap transition-colors hover:bg-accent disabled:pointer-events-none disabled:opacity-40";+// Phones: a little narrower, so the bar keeps every action (and Select all) at 390 px.+const BAR = "inline-flex h-8 shrink-0 items-center gap-1.5 rounded-full px-2.5 text-[13px] font-medium whitespace-nowrap transition-colors hover:bg-accent disabled:pointer-events-none disabled:opacity-40 max-sm:px-2";function BarButton({ icon: Icon, label, onClick, disabled, destructive }: { icon: typeof Download; label: string; onClick: () => void; disabled?: boolean; destructive?: boolean }) {return (diff --git a/tests/e2e/library-flows.mjs b/tests/e2e/library-flows.mjsindex 2aaf9713..c170f857 100644--- a/tests/e2e/library-flows.mjs+++ b/tests/e2e/library-flows.mjs@@ -129,7 +129,7 @@ try {check("P in the viewer unpins", (await gen(made[1].id)).pinnedAt === null);await page.keyboard.press("Escape");- await page.getByRole("button", { name: "Select" }).click();+ await page.getByRole("button", { name: "Select", exact: true }).click();for (const w of ["paper boats", "sleeping cat"]) await page.getByRole("button", { name: new RegExp(`Select “${tag} ${w}`) }).first().click({ force: true });const bar = page.getByRole("toolbar", { name: "Selection" });await bar.getByRole("button", { name: "Pin" }).click();@@ -246,7 +246,7 @@ try {check(`390 px, ${scheme}: ${route.replace(C.id, "<folder>")} fits`, fits);}await openRoute(phone, `${app}/library`, { settleMs: 1200 });- await phone.getByRole("button", { name: "Select" }).click();+ await phone.getByRole("button", { name: "Select", exact: true }).click();await phone.getByRole("button", { name: /^Select “/ }).first().click({ force: true });const bar = await phone.getByRole("toolbar", { name: "Selection" }).evaluate((el) => el.scrollWidth <= el.clientWidth + 1);check(`390 px, ${scheme}: every bulk action fits`, bar);