Skip to content

Commit

Permalink
#2512 - visibility threshold is set to 1 for the right and left toolbars
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitrii Vasilev committed May 11, 2023
1 parent edd2dfa commit 951d5db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
}

.groupItem {
margin: 2px 0;

// TODO: move to action button styles, when all buttons will have same style
svg {
right: 2px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ type Props = RightToolbarProps & RightToolbarCallProps
const RightToolbar = (props: Props) => {
const { className, ...rest } = props
const { active, onAction, freqAtoms } = rest
const [startRef, startInView] = useInView({ threshold: 0.95 })
const [endRef, endInView] = useInView({ threshold: 0.8 })
const [startRef, startInView] = useInView({ threshold: 1 })
const [endRef, endInView] = useInView({ threshold: 1 })
const sizeRef = useRef() as MutableRefObject<HTMLDivElement>
const scrollRef = useRef() as MutableRefObject<HTMLDivElement>

Expand Down

0 comments on commit 951d5db

Please sign in to comment.