From e8d4798c174208b4c7b11c1a4dcacebee214e46b Mon Sep 17 00:00:00 2001 From: Pierre Jacquier Date: Thu, 30 Mar 2023 04:31:58 -0400 Subject: [PATCH] Update viewers on window resize (#52) * Update three on window resize Fixes #43 * Clean up --- src/components/diff/CadDiff.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/diff/CadDiff.tsx b/src/components/diff/CadDiff.tsx index 4caa125..3e9058a 100644 --- a/src/components/diff/CadDiff.tsx +++ b/src/components/diff/CadDiff.tsx @@ -37,12 +37,13 @@ export function CadDiff({ before, after }: FileDiff): React.ReactElement { dashEdge: theme?.colors.success.subtle, } return ( - - + + {before && }