Skip to content

Commit

Permalink
fix: add logical or
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielS-Qlik committed Apr 24, 2023
1 parent 828bbc2 commit a6fd706
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default function showToolbarDetached({ containerRect, titleRef, iconsWidt
const actionToolbarWidth = 128;
const notSufficientSpace = containerWidth < contentWidth + actionToolbarWidth;
const isTruncated = titleRef?.current?.scrollWidth > titleRef?.current?.offsetWidth;
const isDetached = !!(notSufficientSpace | isTruncated);
const isDetached = !!(notSufficientSpace || isTruncated);

return isDetached;
}

0 comments on commit a6fd706

Please sign in to comment.