Skip to content

Commit

Permalink
Devtools: Hide scrollbar on flame graph React Profiler
Browse files Browse the repository at this point in the history
  • Loading branch information
Gianfranco committed Nov 13, 2019
1 parent 32e5c97 commit 8863244
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Expand Up @@ -8,3 +8,13 @@
stroke: var(--color-commit-did-not-render-pattern);
stroke-width: 1;
}

.FixedSizeList {
overflow-y: scroll;
scrollbar-width: none; /* Firefox */
}

.FixedSizeList::-webkit-scrollbar { /* WebKit */
width: 0;
height: 0;
}
Expand Up @@ -142,6 +142,7 @@ function CommitFlamegraph({chartData, commitTree, height, width}: Props) {

return (
<FixedSizeList
className={styles.FixedSizeList}
height={height}
innerElementType={InnerElementType}
itemCount={chartData.depth}
Expand Down

0 comments on commit 8863244

Please sign in to comment.