OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
add a new method to check if a device is a tablet pr not
bsatarnejadeab4d73f0c57
diff --git a/frontend/src/app/core/browser/device.service.ts b/frontend/src/app/core/browser/device.service.tsindex d78da25383b..df4b2af74f1 100644--- a/frontend/src/app/core/browser/device.service.ts+++ b/frontend/src/app/core/browser/device.service.ts@@ -3,8 +3,13 @@ import { Injectable } from '@angular/core';@Injectable({ providedIn: 'root' })export class DeviceService {public mobileWidthTreshold = 544;+ public tabletWidthTreshold = 768;public get isMobile():boolean {return (window.innerWidth < this.mobileWidthTreshold);}++ public get isTablet():boolean {+ return (window.innerWidth < this.tabletWidthTreshold);+ }}