diff --git a/src/ui/kit.test.ts b/src/ui/kit.test.ts index ab3ad6b..437f2ed 100644 --- a/src/ui/kit.test.ts +++ b/src/ui/kit.test.ts @@ -65,6 +65,12 @@ describe("UI kit components (PIN-97)", () => { expect(held).toContain("pn-sticker-held"); expect(held).toContain("Under review"); expect(held).not.toContain(" {} })); expect(pin).not.toContain(" = { "--t": tilt ?? stickerTilt(seed) }; if (size !== undefined) vars["--pn-size"] = typeof size === "number" ? `${size}px` : size; - if (state === "cutting" || foil) vars["--src"] = `url("${src}")`; + // PIN-279: a held pin has no picture anywhere, foil mask included. + const foiled = Boolean(foil) && !held; + if (!held && (state === "cutting" || foiled)) vars["--src"] = `url("${src}")`; return ( @@ -61,7 +63,7 @@ export function Sticker({ ) : ( {alt} )} - {foil ?