Skip to content

Commit

Permalink
Prettify
Browse files Browse the repository at this point in the history
  • Loading branch information
fcollonval committed Aug 19, 2022
1 parent 225377d commit 5f3a211
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/HistorySideBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export const HistorySideBar: React.FunctionComponent<IHistorySideBarProps> = (
const nodes = React.useRef<{ [sha: string]: HTMLLIElement }>({});

React.useEffect(() => {
const resizeObserver = new ResizeObserver(entries => {
const resizeObserver = new ResizeObserver(entries => {
for (const entry of entries) {
const borderBoxSize = Array.isArray(entry.borderBoxSize)
? entry.borderBoxSize[0]
Expand All @@ -131,7 +131,7 @@ export const HistorySideBar: React.FunctionComponent<IHistorySideBarProps> = (
setNodeHeights(prev => ({ ...prev, [sha]: offsetHeight }));
}
});

props.commits.forEach(commit =>
resizeObserver.observe(nodes.current[commit.commit], {
box: 'border-box'
Expand Down

0 comments on commit 5f3a211

Please sign in to comment.