Skip to content

Commit

Permalink
Update our breakpoint for better support on landscape iPhone and port…
Browse files Browse the repository at this point in the history
…rait iPad views (#533)

* Update our breakpoint for better support on landscape iPhone and portrait iPad views

* Fixes the flaky search cypress test
  • Loading branch information
gcardonag authored Sep 17, 2024
1 parent bd9b193 commit f4d738b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cypress/e2e/desktop/search.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ describe('search', () => {
'span:contains("30th Street Station, Market Street, Philadelphia, PA, USA")'
).click();
// Not a perfect approach since it assumes the use of GMaps creating a link tied to the updated map center
cy.get('a[href*="39\\.956837\\,\\-75\\.182233"]').should('exist');
cy.get('a[href*="39\\.95574\\,\\-75\\.18196"]').should('exist');
});
});
2 changes: 1 addition & 1 deletion src/hooks/useIsMobile.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import useMediaQuery from '@mui/material/useMediaQuery';

const useIsMobile = () => {
const isMobile = useMediaQuery(theme =>
theme.breakpoints.down(theme.breakpoints.values.sm)
theme.breakpoints.down(theme.breakpoints.values.md)
);

return isMobile;
Expand Down

0 comments on commit f4d738b

Please sign in to comment.