fix: fixes issue where add button would not be visible at times on iOS (#2087)
* fix: fixes issue where add button would not be visible at times on iOS * fix: fixes issue where screens could not be navigated with certain window sizes
This commit is contained in:
@@ -206,10 +206,12 @@ export const disableIosTextFieldZoom = () => {
|
||||
}
|
||||
}
|
||||
|
||||
export const isMobileScreen = () => !window.matchMedia(MediaQueryBreakpoints.md).matches
|
||||
export const isMobileScreen = () => window.matchMedia(MediaQueryBreakpoints.sm).matches
|
||||
|
||||
export const isTabletScreen = () =>
|
||||
!window.matchMedia(MediaQueryBreakpoints.sm).matches && !window.matchMedia(MediaQueryBreakpoints.lg).matches
|
||||
!isMobileScreen() &&
|
||||
window.matchMedia(MediaQueryBreakpoints.md).matches &&
|
||||
!window.matchMedia(MediaQueryBreakpoints.lg).matches
|
||||
|
||||
export const isTabletOrMobileScreen = () => isMobileScreen() || isTabletScreen()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user