Skip to content

Commit

Permalink
use js to change the body style in the ProjectsPage component
Browse files Browse the repository at this point in the history
  • Loading branch information
roslynwythe committed Nov 22, 2024
1 parent b5062c1 commit c64647e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/src/components/Projects/ProjectsPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -879,6 +879,8 @@ const ProjectsPage = ({ contentContainerRef }) => {
indexOfLastPost
);

document.body.style.overflowX = "hidden"; // prevent page level scrolling, becauase the table is scrollable

return (
<ContentContainerNoSidebar contentContainerRef={contentContainerRef}>
<div className={classes.outerDiv}>
Expand Down

0 comments on commit c64647e

Please sign in to comment.