You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Sonarr/frontend/src/Utilities/ResolutionUtility.ts

25 lines
442 B

module.exports = {
resolutions: {
desktopLarge: 1200,
desktop: 992,
tablet: 768,
mobile: 480,
},
isDesktopLarge() {
return window.innerWidth < this.resolutions.desktopLarge;
},
isDesktop() {
return window.innerWidth < this.resolutions.desktop;
},
isTablet() {
return window.innerWidth < this.resolutions.tablet;
},
isMobile() {
return window.innerWidth < this.resolutions.mobile;
},
};