diff --git a/src/app/app.component.html b/src/app/app.component.html
index 92427c1..9c07738 100644
--- a/src/app/app.component.html
+++ b/src/app/app.component.html
@@ -6,7 +6,7 @@
v{{environment.version}}
-
+
diff --git a/src/app/battery/battery.component.html b/src/app/battery/battery.component.html
index 44d1059..d4017df 100644
--- a/src/app/battery/battery.component.html
+++ b/src/app/battery/battery.component.html
@@ -4,26 +4,26 @@
diff --git a/src/app/battery/battery.component.ts b/src/app/battery/battery.component.ts
index 662345d..44f109a 100644
--- a/src/app/battery/battery.component.ts
+++ b/src/app/battery/battery.component.ts
@@ -1,6 +1,7 @@
import {Component, OnInit, ViewChild} from '@angular/core';
import {BatteryService} from './battery.service';
import {BarVerticalComponent} from '@swimlane/ngx-charts/release/bar-chart';
+import {AppComponent} from '../app.component';
@Component({
selector: 'app-batterys',
@@ -19,12 +20,12 @@ export class BatteryComponent implements OnInit {
fireScheme = {
name: 'flame',
- selectable: false,
+ selectable: true,
group: 'Continuous',
domain: ['#00deff', '#3db0ff', '#a274d7', '#c42576', '#9f0000']
};
- constructor(public batteryService: BatteryService) { }
+ constructor(public app: AppComponent, public batteryService: BatteryService) { }
ngOnInit() {
setTimeout(() => {
diff --git a/src/styles.scss b/src/styles.scss
index d19677f..3e12b85 100644
--- a/src/styles.scss
+++ b/src/styles.scss
@@ -35,6 +35,14 @@ html, body {
}
}
+.mobile-height{
+ height: calc(100vh - 56px);
+}
+
+.desktop-height{
+ height: calc(100vh - 64px);
+}
+
.center {
position: fixed;
left: 50%;