From e70860e99d9525f9a41dc5c7e0d85a634fdffddb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Greg=20Berg=C3=A9?= Date: Wed, 20 Nov 2024 09:51:11 +0100 Subject: [PATCH 1/2] fix: fix diff overlay positionning --- apps/frontend/src/pages/Build/BuildDiffColorState.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/frontend/src/pages/Build/BuildDiffColorState.tsx b/apps/frontend/src/pages/Build/BuildDiffColorState.tsx index a2d0baa3e..e10dbe36f 100644 --- a/apps/frontend/src/pages/Build/BuildDiffColorState.tsx +++ b/apps/frontend/src/pages/Build/BuildDiffColorState.tsx @@ -24,8 +24,8 @@ export function useBuildDiffColorState() { export function useBuildDiffColorStyle() { const { color, opacity } = useBuildDiffColorState(); return { - filter: `drop-shadow(0 2000px 0 ${color})`, - transform: "translateY(-2000px)", + filter: `drop-shadow(0 60000px 0 ${color})`, + transform: "translateY(-60000px)", overflow: "hidden", opacity, }; From d68236f181911465c8c9dacfe3ec15552436258c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Greg=20Berg=C3=A9?= Date: Wed, 20 Nov 2024 09:53:49 +0100 Subject: [PATCH 2/2] fix: display original image, not altered --- apps/frontend/src/ui/TwicPicture.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/frontend/src/ui/TwicPicture.tsx b/apps/frontend/src/ui/TwicPicture.tsx index f352dc782..abc155707 100644 --- a/apps/frontend/src/ui/TwicPicture.tsx +++ b/apps/frontend/src/ui/TwicPicture.tsx @@ -13,7 +13,11 @@ export const TwicPicture = forwardRef(function TwicPicture( const { src, transforms = [], original, ...rest } = props; if (original) { return ( - + ); } return (