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.
Lidarr/frontend/src/Utilities/ResolutionUtility.js

27 lines
465 B

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