mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
New: Project Aphrodite
This commit is contained in:
26
frontend/src/Utilities/ResolutionUtility.js
Normal file
26
frontend/src/Utilities/ResolutionUtility.js
Normal file
@@ -0,0 +1,26 @@
|
||||
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;
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user