More battery page styling

This commit is contained in:
Zakary Timson 2018-11-15 13:00:00 -05:00
parent c0a15a9950
commit 6d6fe18465
2 changed files with 9 additions and 4 deletions

View File

@ -1,8 +1,9 @@
<div class="nav-fix"></div>
<h1>POWER WALL:
<span *ngIf="batteryService.batteries.length" class="text-muted">{{batteryService.average * 100}}%</span>
<span *ngIf="!batteryService.batteries.length" class="text-muted">UNKNOWN</span>
</h1>
<div class="d-flex flex-column flex-md-row">
<div class="d-flex flex-column flex-md-row mb-3">
<div style="overflow: auto">
<ngx-charts-bar-vertical
[results]="batteryService.percentageData"
@ -27,9 +28,8 @@
></ngx-charts-bar-vertical>
</div>
</div>
<mat-card *ngFor="let b of batteryService.batteries" class="mt-3">
{{b.name}}
<br>
<mat-card *ngFor="let b of batteryService.batteries" class="mb-3">
<h3>{{b.name}}</h3>
{{b.history[0].percentage * 100}}%
<br>
{{b.history[0].temp}} °C

View File

@ -35,6 +35,11 @@ html, body {
}
}
.nav-fix {
width: 100%;
height: 64px;
}
.center {
position: fixed;
left: 50%;