From feaabe910b91f31c7215ab42c6eca1a1a81ee2a6 Mon Sep 17 00:00:00 2001 From: Anthony Ettinger Date: Wed, 19 Aug 2026 06:06:26 +0000 Subject: [PATCH] Square off the ad container so the corners stop showing white The iframe the embed drops in is square, but .cp-ad rounded its own corners at 8px, so the host page background bled through the four corners of every unit. Set the radius to 0 on all five container rules (house banner and text link, paid creative banner and text link, and the terminal ad). Inner chrome -- CTA pill, logo, brand badge -- keeps its own radius. Co-Authored-By: Claude Opus 5 (1M context) --- lib/ads/creative.ts | 4 ++-- lib/ads/house.ts | 4 ++-- lib/ads/terminal.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/ads/creative.ts b/lib/ads/creative.ts index df3d47cb..b81f41a1 100644 --- a/lib/ads/creative.ts +++ b/lib/ads/creative.ts @@ -474,7 +474,7 @@ export function renderCreativeHtml(creative: AdCreative, clickUrl: string): stri a{text-decoration:none;display:block} .cp-ad{display:flex;align-items:center;gap:8px;width:100%;height:${h}px; background:${creative.bgColor};font-family:${creative.fontFamily};font-size:13px; - padding:0 12px;overflow:hidden;border-radius:8px; + padding:0 12px;overflow:hidden;border-radius:0; border:1px solid rgba(255,255,255,.08);border-left:3px solid ${creative.accentColor}} @@ -526,7 +526,7 @@ export function renderCreativeHtml(creative: AdCreative, clickUrl: string): stri *{box-sizing:border-box;margin:0} a{text-decoration:none;display:block} .cp-ad{position:relative;width:${w}px;height:${h}px;background:${bg};font-family:${creative.fontFamily}; - border-radius:8px;padding:${isMobile ? "8px 10px" : "14px"};overflow:hidden; + border-radius:0;padding:${isMobile ? "8px 10px" : "14px"};overflow:hidden; border:1px solid rgba(255,255,255,.08)} ${rectBg}${inner} diff --git a/lib/ads/house.ts b/lib/ads/house.ts index 9f9812f7..ec0f293c 100644 --- a/lib/ads/house.ts +++ b/lib/ads/house.ts @@ -129,7 +129,7 @@ export function renderHouseAdHtml( a{text-decoration:none;display:block} .cp-ad{display:flex;align-items:center;gap:8px;width:100%;height:${h}px;background:#070a10; font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:13px;padding:0 12px; - overflow:hidden;border-radius:8px;border:1px solid rgba(255,255,255,.08);border-left:3px solid #6ee7b7} + overflow:hidden;border-radius:0;border:1px solid rgba(255,255,255,.08);border-left:3px solid #6ee7b7} CrawlProof Ads @@ -169,7 +169,7 @@ export function renderHouseAdHtml( return `