fix(ai-toolbar): wrap masonry prompt cards correctly

This commit is contained in:
2026-04-22 17:45:57 -04:00
parent e1a12d0c71
commit a93d95ee2e
2 changed files with 5 additions and 2 deletions

View File

@@ -172,7 +172,10 @@ describe("AI capture redesign", () => {
expect(source).toContain("Try:");
expect(source).toContain("columns-2");
expect(source).toContain("break-inside-avoid");
expect(source).toContain("w-full text-left");
expect(source).toContain("whitespace-normal");
expect(source).toMatch(
/className="[^"]*\bw-full\b[^"]*\btext-left\b[^"]*\bwhitespace-normal\b[^"]*"/,
);
});
test("desktop composer uses a two-column row when the page gives it full-width space", () => {