diff --git a/src/app/monitor/monitor.component.html b/src/app/monitor/monitor.component.html index 0f69b68..33b6b6a 100644 --- a/src/app/monitor/monitor.component.html +++ b/src/app/monitor/monitor.component.html @@ -234,44 +234,31 @@ -
- - - - - - - - - +
+
-
-
+
- - +
-
Filters
+

Filters

Clear All
-
If your filter - selection cannot be - applied to a chart, that chart will appear grayed-out.
Sign in to apply filters
-
    +
    • @@ -283,7 +270,9 @@
    - +
    + If your filter selection cannot be applied to a chart, that chart will appear grayed-out. +
diff --git a/src/app/monitor/monitor.component.ts b/src/app/monitor/monitor.component.ts index 0d8bda7..6d67f98 100644 --- a/src/app/monitor/monitor.component.ts +++ b/src/app/monitor/monitor.component.ts @@ -33,6 +33,8 @@ import {properties} from "../../environments/environment"; import {IndexInfoService} from "../openaireLibrary/utils/indexInfo.service"; import {ConfigurationService} from "../openaireLibrary/utils/configuration/configuration.service"; +declare var UIkit; + @Component({ selector: 'monitor', templateUrl: 'monitor.component.html', @@ -77,7 +79,8 @@ export class MonitorComponent implements OnInit, OnDestroy { public keyword: FormControl; public statsUpdateDate: Date; public stickyPageHeader: boolean = false; - + public offcanvasOpen: boolean = false; + constructor( private route: ActivatedRoute, private _router: Router, @@ -217,7 +220,14 @@ export class MonitorComponent implements OnInit, OnDestroy { } })); })); - + + UIkit.util.on('#style_switcher', 'beforeshow', () => { + this.offcanvasOpen = true; + }); + + UIkit.util.on('#style_switcher', 'beforehide', () => { + this.offcanvasOpen = false; + }); } private initializeFilters() { diff --git a/src/assets/monitor-dashboard-custom.css b/src/assets/monitor-dashboard-custom.css index 22eaf7f..78a5001 100644 --- a/src/assets/monitor-dashboard-custom.css +++ b/src/assets/monitor-dashboard-custom.css @@ -83,17 +83,7 @@ /*}*/ #filters_switcher_toggle { - top: 320px !important; - position: fixed; - height: 36px; - background-color: var(--secondary-color); - border-radius: 4px 0 0 4px; - cursor: pointer; - padding: 0 2px; - box-shadow: -2px 2px 5px rgba(0, 0, 0, .26); - box-sizing: border-box; - /*z-index: 981;*/ - right: 0; + top: 400px !important; } /*!*Sidebar*!*/