From 3db560898bc5e76c8c6e6759ffd9c373d9a6423c Mon Sep 17 00:00:00 2001 From: Andrei Vinaga Date: Mon, 17 Jan 2022 16:36:34 +0200 Subject: [PATCH] fix: see more documentation flicker --- src/components/organisms/ActionsPane/ActionsPane.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/organisms/ActionsPane/ActionsPane.tsx b/src/components/organisms/ActionsPane/ActionsPane.tsx index 7717731688..49806fee18 100644 --- a/src/components/organisms/ActionsPane/ActionsPane.tsx +++ b/src/components/organisms/ActionsPane/ActionsPane.tsx @@ -122,13 +122,13 @@ const ActionsPane = (props: {contentHeight: string}) => { if (isButtonShrinked) { // 230px = approx width of not collapsed button - if (distance > 230) { + if (distance > 350) { setButtonShrinkedState(false); } } // The button has 10px margin-left - if (!isButtonShrinked && distance < 10) { + if (!isButtonShrinked && distance < 40) { setButtonShrinkedState(true); } }, [isButtonShrinked, tabsList]);