Skip to content

Commit

Permalink
Refactor media query for Tech and Works components to support larger …
Browse files Browse the repository at this point in the history
…screen sizes
  • Loading branch information
Udoy2 committed Sep 12, 2024
1 parent 67668a4 commit 2a64123
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/Tech.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const Tech = () => {
const [isMobile, setisMobile] = useState(false);

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

const handleMediaQueryChange = (event) => {
Expand Down
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: 500px)');
const mediaQuery = window.matchMedia('(max-width: 751px)');
setisMobile(mediaQuery.matches);

const handleMediaQueryChange = (event) => {
Expand Down

0 comments on commit 2a64123

Please sign in to comment.