Skip to content

Commit

Permalink
Refactor media query for Works component to support larger screen sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
Udoy2 committed Sep 14, 2024
1 parent 4312c43 commit 353788a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Works.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ const Works = () => {
const [isMobile, setisMobile] = useState(false);

useEffect(() => {
const mediaQuery = window.matchMedia('(max-width: 751px)');
const mediaQuery = window.matchMedia('(max-width: 1000px)');
setisMobile(mediaQuery.matches);

const handleMediaQueryChange = (event) => {
Expand Down

0 comments on commit 353788a

Please sign in to comment.