From a419aaaf1b509681665eaef6c97510779c7de7db Mon Sep 17 00:00:00 2001 From: Lorenzo Blasa Date: Tue, 4 Apr 2023 22:10:39 -0700 Subject: [PATCH] Outer Border removal Summary: Not in use, remove. Reviewed By: LukeDefeo Differential Revision: D44664459 fbshipit-source-id: 226fa7b36eea6696057f46ae482c16ca1959e099 --- .../ui-debugger/components/Visualization2D.tsx | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/desktop/plugins/public/ui-debugger/components/Visualization2D.tsx b/desktop/plugins/public/ui-debugger/components/Visualization2D.tsx index c7957194c..9e57707f7 100644 --- a/desktop/plugins/public/ui-debugger/components/Visualization2D.tsx +++ b/desktop/plugins/public/ui-debugger/components/Visualization2D.tsx @@ -366,26 +366,9 @@ const NodeBorder = styled.div<{tags: Tag[]; hovered: boolean}>((props) => ({ })); const longHoverDelay = 200; -const outerBorderWidth = '10px'; -const outerBorderOffset = `-${outerBorderWidth}`; const pxScaleFactorCssVar = '--pxScaleFactor'; const MouseThrottle = 32; -//this is the thick black border around the whole vizualization, the border goes around the content -//hence the top,left,right,botton being negative to increase its size -const OuterBorder = styled.div({ - boxSizing: 'border-box', - position: 'absolute', - top: outerBorderOffset, - left: outerBorderOffset, - right: outerBorderOffset, - bottom: outerBorderOffset, - borderWidth: outerBorderWidth, - borderStyle: 'solid', - borderColor: 'black', - borderRadius: '10px', -}); - function toPx(n: number) { return `calc(${n}px / var(${pxScaleFactorCssVar})`; }