-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#172 - mobile view fixes + double line graph fix
- Loading branch information
Showing
5 changed files
with
119 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 18 additions & 29 deletions
47
...ges/charging-page/components/cell-temp/cell-temp-display/cell-temp-display.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,23 @@ | ||
<info-background svgIcon="thermostat" title="Cell Temp" [button]="resetGraphButton"> | ||
<vstack> | ||
<div *ngIf="!isDesktop" style="padding-top: 20px"></div> | ||
<hstack> | ||
<vstack style="width: 10%; padding-bottom: 30px"> | ||
<typography variant="info-value" [content]="avgTemp.toString() + '°'" /> | ||
<typography variant="info-subtitle" content="Avg. Temp" /> | ||
</vstack> | ||
<div *ngIf="!isDesktop" style="padding-top: 20px"></div> | ||
<hstack> | ||
<vstack style="width: 10%; padding-bottom: 30px"> | ||
<typography variant="info-value" [content]="avgTemp.toString() + '°'" /> | ||
<typography variant="info-subtitle" content="Avg. Temp" /> | ||
</vstack> | ||
|
||
<div *ngIf="!isDesktop" style="padding-left: 20px"></div> | ||
<!--TODO: temp fix for divider setting pixel height: is only way for divider to show--> | ||
<divider style="height: 100px"></divider> | ||
<div *ngIf="!isDesktop" style="padding-right: 20px"></div> | ||
<div *ngIf="!isDesktop" style="padding-left: 20px"></div> | ||
<!--TODO: temp fix for divider setting pixel height: is only way for divider to show--> | ||
<divider style="height: 100px"></divider> | ||
<div *ngIf="!isDesktop" style="padding-right: 20px"></div> | ||
|
||
<vstack style="width: 10%; padding-bottom: 30px"> | ||
<typography variant="info-value" [content]="maxTemp.toString() + '°'" /> | ||
<typography variant="info-subtitle" content="Max. Temp" /> | ||
</vstack> | ||
<!--TODO: (temp fix: padding-bottom) temp fix for voltage graph being centered (and not all the way on bottom of comp)--> | ||
<!--if it is not desktop, we want to show graph seperately... TODO: need to figure out best logic for enforcing that this is done... | ||
<vstack style="width: 10%; padding-bottom: 30px"> | ||
<typography variant="info-value" [content]="maxTemp.toString() + '°'" /> | ||
<typography variant="info-subtitle" content="Max. Temp" /> | ||
</vstack> | ||
<!--TODO: (temp fix: padding-bottom) temp fix for voltage graph being centered (and not all the way on bottom of comp)--> | ||
<!--if it is not desktop, we want to show graph seperately... TODO: need to figure out best logic for enforcing that this is done... | ||
or just don't enforce --> | ||
<cell-temp-graph | ||
style="width: 85%; padding-bottom: 30px" | ||
[resetGraph]="resetGraph" | ||
*ngIf="isDesktop" | ||
></cell-temp-graph> | ||
</hstack> | ||
<cell-temp-graph | ||
style="width: 100%; padding-bottom: 30px" | ||
[resetGraph]="resetGraph" | ||
*ngIf="!isDesktop" | ||
></cell-temp-graph> | ||
</vstack> | ||
<cell-temp-graph style="width: 85%; padding-bottom: 30px" [resetGraph]="resetGraph" *ngIf="isDesktop"></cell-temp-graph> | ||
</hstack> | ||
</info-background> |
90 changes: 57 additions & 33 deletions
90
...-page/components/high-low-cell/high-low-cell-display/high-low-cell-display.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,65 @@ | ||
<info-background svgIcon="electric_meter" title="Cell Voltage" [button]="resetGraphButton"> | ||
<vstack> | ||
<hstack spacing="30px"> | ||
<vstack style="width: 10%"> | ||
<hstack> | ||
<typography variant="info-value" [content]="delta.toFixed(3) + 'V'" additionalStyles="fontSize:20px" /> | ||
</hstack> | ||
<typography variant="info-subtitle" content="Delta" additionalStyles="fontSize:15px" /> | ||
</vstack> | ||
<hstack spacing="30px"> | ||
<vstack style="width: 10%"> | ||
<hstack> | ||
<typography | ||
variant="info-value" | ||
[content]="delta.toFixed(3) + 'V'" | ||
additionalStyles="fontSize:40px" | ||
*ngIf="isDesktop" | ||
/> | ||
<typography | ||
variant="info-value" | ||
[content]="delta.toFixed(3) + 'V'" | ||
additionalStyles="fontSize:20px" | ||
*ngIf="!isDesktop" | ||
/> | ||
</hstack> | ||
<typography variant="info-subtitle" content="Delta" additionalStyles="fontSize:15px" /> | ||
</vstack> | ||
|
||
<!--TODO: temp fix for divider setting pixel height: is only way for divider to show--> | ||
<divider style="height: 100px"></divider> | ||
<!--TODO: temp fix for divider setting pixel height: is only way for divider to show--> | ||
<divider style="height: 100px"></divider> | ||
|
||
<vstack style="width: 10%"> | ||
<typography variant="info-value" [content]="lowCellVoltage.toFixed(3) + 'V'" additionalStyles="fontSize:20px" /> | ||
<typography variant="info-subtitle" content="Low Cell" additionalStyles="fontSize:15px" /> | ||
</vstack> | ||
<vstack style="width: 10%"> | ||
<typography | ||
variant="info-value" | ||
[content]="lowCellVoltage.toFixed(3) + 'V'" | ||
additionalStyles="fontSize:40px" | ||
*ngIf="isDesktop" | ||
/> | ||
<typography | ||
variant="info-value" | ||
[content]="lowCellVoltage.toFixed(3) + 'V'" | ||
additionalStyles="fontSize:20px" | ||
*ngIf="!isDesktop" | ||
/> | ||
<typography variant="info-subtitle" content="Low Cell" additionalStyles="fontSize:15px" /> | ||
</vstack> | ||
|
||
<!--TODO: temp fix for divider setting pixel height: is only way for divider to show--> | ||
<divider style="height: 100px"></divider> | ||
<!--TODO: temp fix for divider setting pixel height: is only way for divider to show--> | ||
<divider style="height: 100px"></divider> | ||
|
||
<vstack style="width: 10%"> | ||
<hstack> | ||
<typography variant="info-value" [content]="highCellVoltage.toFixed(3) + 'V'" additionalStyles="fontSize:20px" /> | ||
</hstack> | ||
<typography variant="info-subtitle" content="High Cell" additionalStyles="fontSize:15px" /> | ||
</vstack> | ||
<vstack style="width: 10%"> | ||
<hstack> | ||
<typography | ||
variant="info-value" | ||
[content]="highCellVoltage.toFixed(3) + 'V'" | ||
additionalStyles="fontSize:40px" | ||
*ngIf="isDesktop" | ||
/> | ||
<typography | ||
variant="info-value" | ||
[content]="highCellVoltage.toFixed(3) + 'V'" | ||
additionalStyles="fontSize:20px" | ||
*ngIf="!isDesktop" | ||
/> | ||
</hstack> | ||
<typography variant="info-subtitle" content="High Cell" additionalStyles="fontSize:15px" /> | ||
</vstack> | ||
|
||
<!--On desktop view we don't want the graph component to be in a horizontal stack--> | ||
<high-low-cell-graph style="width: 70%; padding-bottom: 5vh" [resetGraph]="resetGraph" *ngIf="isDesktop"> | ||
</high-low-cell-graph> | ||
</hstack> | ||
<!--We want the graph to be in a vertical stack--> | ||
<high-low-cell-graph | ||
style="width: 100%; padding-bottom: 5vh; height: 280px" | ||
[resetGraph]="resetGraph" | ||
*ngIf="!isDesktop" | ||
> | ||
<!--On desktop view we don't want the graph component to be in a horizontal stack--> | ||
<high-low-cell-graph style="width: 70%; padding-bottom: 5vh" [resetGraph]="resetGraph" *ngIf="isDesktop"> | ||
</high-low-cell-graph> | ||
</vstack> | ||
</hstack> | ||
</info-background> |
20 changes: 6 additions & 14 deletions
20
...ing-page/components/pack-voltage/pack-voltage-display/pack-voltage-display.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,12 @@ | ||
<info-background svgIcon="electric_meter" title="Pack. Voltage" [button]="resetGraphButton"> | ||
<vstack> | ||
<div *ngIf="!isDesktop" style="padding-top: 20px"></div> | ||
<hstack> | ||
<hstack style="width: 15%"> | ||
<typography variant="info-value" [content]="voltage.toString() + 'V'" /> | ||
</hstack> | ||
<pack-voltage-graph | ||
style="width: 80%; padding-bottom: 5vh" | ||
[resetGraph]="resetGraph" | ||
*ngIf="isDesktop" | ||
></pack-voltage-graph> | ||
<hstack> | ||
<hstack style="width: 15%"> | ||
<typography variant="info-value" [content]="voltage.toString() + 'V'" /> | ||
</hstack> | ||
<pack-voltage-graph | ||
style="width: 100%; padding-bottom: 5vh" | ||
style="width: 80%; padding-bottom: 5vh" | ||
[resetGraph]="resetGraph" | ||
*ngIf="!isDesktop" | ||
*ngIf="isDesktop" | ||
></pack-voltage-graph> | ||
</vstack> | ||
</hstack> | ||
</info-background> |