mobile formatting

This commit is contained in:
Zakary Timson 2019-06-16 16:41:01 -04:00
parent 7e5a6f8352
commit daeb960d9e

View File

@ -1,14 +1,15 @@
<div class="fill-height p-3" style="background-color: #b52e3c !important;">
<div style="max-width: 1000px;">
<div class="d-flex justify-content-between mb-4">
<div>
<div class="d-flex flex-column flex-md-row justify-content-between">
<div class="mb-3">
<h1 class="mb-0">Powerwall: {{batteryService.charge | number : '1.1-1'}} V</h1>
<h6>Last Updated At: {{batteryService.lastUpdate | date: 'short'}}</h6>
</div>
<div class="d-flex flex-column align-content-center">
<div class="d-flex flex-column align-content-center mb-3">
<div>
<h5><mat-icon *ngIf="locked" class="mr-1">lock</mat-icon>Cooling Fans</h5>
</div>
<div>
<mat-button-toggle-group class="mb-3" [ngModel]="batteryService.relayMode"
(change)="batteryService.setRelayMode($event.value)" [disabled]="locked">
<mat-button-toggle value="null">Auto</mat-button-toggle>
@ -17,6 +18,7 @@
</mat-button-toggle-group>
</div>
</div>
</div>
<mat-card class="mt-2" *ngFor="let battery of batteryService.batteries; let i = index">
<div class="d-flex">
<div class="d-flex flex-grow-1 align-items-center">