Fix case-study share chrome, hero lockup width, and copy confirmation in the share dialog.

Marketing pages omitted create-flow nav copy, so Share rendered as a translation key; the case-study banner squeezed hero text to the thumbnail width; Copy link had no hover or copied state.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
adilallo
2026-09-09 22:00:19 -06:00
co-authored by Cursor
parent ddf7b0ef7a
commit ce581a42c8
17 changed files with 225 additions and 52 deletions
+11
View File
@@ -111,6 +111,17 @@ describe("ContentContainer", () => {
expect(container).toHaveStyle("width: 200px");
});
it("applies full width and case-study type scale for useCase size", () => {
render(<ContentContainer post={mockPost} size="useCase" />);
const container = document.querySelector("div[class*='relative z-20']");
expect(container).toHaveStyle("width: 100%");
const title = screen.getByText("Test Article Title");
expect(title).toHaveClass("text-[32px]", "lg:text-medium-display");
expect(title).not.toHaveClass("xl:text-x-large-display");
});
it("has proper spacing between icon and text", () => {
render(<ContentContainer post={mockPost} />);