From 4668fbfa2789338115ae44e017f37e40024ed6b1 Mon Sep 17 00:00:00 2001 From: Gustavo Lelis Date: Wed, 8 Apr 2020 12:00:08 -0300 Subject: [PATCH] Fix callouts --- platform/ui/src/components/SidePanel/SidePanel.jsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/platform/ui/src/components/SidePanel/SidePanel.jsx b/platform/ui/src/components/SidePanel/SidePanel.jsx index 2d2fa9ceb..1bf347934 100644 --- a/platform/ui/src/components/SidePanel/SidePanel.jsx +++ b/platform/ui/src/components/SidePanel/SidePanel.jsx @@ -13,18 +13,19 @@ const baseStyle = { width: `${expandedWidth}px`, }; +const collapsedHideWidth = expandedWidth - collapsedWidth - borderSize; const styleMap = { open: { left: { marginLeft: '0px' }, right: { marginRight: '0px' }, }, closed: { - left: { marginLeft: `-${expandedWidth - collapsedWidth - borderSize}px` }, - right: { marginRight: `-${expandedWidth - collapsedWidth - borderSize}px` }, + left: { marginLeft: `-${collapsedHideWidth}px` }, + right: { marginRight: `-${collapsedHideWidth}px` }, }, }; -const baseClassName = +const baseClasses = 'transition-all duration-300 ease-in-out h-100 bg-primary-dark border-black flex flex-col justify-start'; const classesMap = { @@ -103,7 +104,7 @@ const SidePanel = ({