Skip to content

Commit

Permalink
fix table row scrolling as well
Browse files Browse the repository at this point in the history
  • Loading branch information
danilo-leal committed Oct 16, 2023
1 parent 0b95aee commit 2807849
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/src/modules/components/ApiPage/table/CSSTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const StyledTable = styled('table')(
fontSize: theme.typography.pxToRem(14),
},
'& tr': {
scrollMarginTop: 'calc(var(--MuiDocs-header-height) + 32px)',
'&:hover': {
backgroundColor: alpha(darkTheme.palette.grey[50], 0.5),
},
Expand Down
1 change: 1 addition & 0 deletions docs/src/modules/components/ApiPage/table/ClassesTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const StyledTable = styled('table')(
fontSize: theme.typography.pxToRem(14),
},
'& tr': {
scrollMarginTop: 'calc(var(--MuiDocs-header-height) + 32px)',
'&:hover': {
backgroundColor: alpha(darkTheme.palette.grey[50], 0.5),
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const StyledTable = styled('table')(
fontSize: theme.typography.pxToRem(14),
},
'& tr': {
scrollMarginTop: 'calc(var(--MuiDocs-header-height) + 32px)',
'&:hover': {
backgroundColor: alpha(darkTheme.palette.grey[50], 0.5),
},
Expand Down
1 change: 1 addition & 0 deletions docs/src/modules/components/ApiPage/table/SlotsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const StyledTable = styled('table')(
fontSize: theme.typography.pxToRem(14),
},
'& tr': {
scrollMarginTop: 'calc(var(--MuiDocs-header-height) + 32px)',
'&:hover': {
backgroundColor: alpha(darkTheme.palette.grey[50], 0.5),
},
Expand Down

0 comments on commit 2807849

Please sign in to comment.