Skip to content

Commit

Permalink
Merge pull request #1014 from kubeshop/andreiv1992/fix/see-more-docum…
Browse files Browse the repository at this point in the history
…entation-flicker

fix: see more documentation flicker
  • Loading branch information
andreivinaga authored Jan 17, 2022
2 parents 518a738 + 3db5608 commit cfe6d18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/organisms/ActionsPane/ActionsPane.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,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]);
Expand Down

0 comments on commit cfe6d18

Please sign in to comment.