Skip to content

Commit

Permalink
fix scrolling 8px (#135)
Browse files Browse the repository at this point in the history
ChapterCount Header has a top margin of 8px that wasn't accounted for
  • Loading branch information
Robonau authored Feb 23, 2022
1 parent 20b0e66 commit 55a3f8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/chapter/ChapterList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ const CustomVirtuoso = styled(Virtuoso)(({ theme }) => ({
minHeight: '200px',
[theme.breakpoints.up('md')]: {
width: '50vw',
// 64px for the Appbar, 40px for the ChapterCount Header
height: 'calc(100vh - 64px - 40px)',
// 64px for the Appbar, 48px for the ChapterCount Header
height: 'calc(100vh - 64px - 48px)',
margin: 0,
},
}));
Expand Down

0 comments on commit 55a3f8e

Please sign in to comment.