From 0c8e8c075c6ea9334dcbc8fb0a0b5131144889d7 Mon Sep 17 00:00:00 2001 From: SnapOtter Date: Mon, 11 May 2026 16:48:51 +0800 Subject: [PATCH] fix: remove checkerboard bleed in before-after slider and image viewer The before-after slider hardcoded a checkerboard background on the entire "after" overlay, which filled letterbox/pillarbox space around non-transparent images. Replaced with a neutral bg-muted/30. In image-viewer, moved the checkerboard from the outer container (which included padding) to the img element itself, so it only shows through transparent pixels rather than the surrounding area. --- .../src/components/common/before-after-slider.tsx | 11 ++--------- apps/web/src/components/common/image-viewer.tsx | 13 +++++++------ 2 files changed, 9 insertions(+), 15 deletions(-) diff --git a/apps/web/src/components/common/before-after-slider.tsx b/apps/web/src/components/common/before-after-slider.tsx index 975c6fcb..d2ae6eb1 100644 --- a/apps/web/src/components/common/before-after-slider.tsx +++ b/apps/web/src/components/common/before-after-slider.tsx @@ -114,15 +114,8 @@ export function BeforeAfterSlider({ {/* After image (clipped, top layer) */}
{loadError ? (