Skip to content

Commit

Permalink
#172 - minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
bracyw committed Sep 14, 2024
1 parent aaaaf16 commit a5418e7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 18 deletions.
Original file line number Diff line number Diff line change
@@ -1,24 +1,20 @@
<info-background svgIcon="thermostat" title="Cell Temp" [button]="resetGraphButton">
<hstack>
<vstack style="width: 10%">
<hstack>
<typography variant="info-value" [content]="avgTemp.toString() + '°'" />
</hstack>
<vstack style="width: 10%; padding-bottom: 30px">
<typography variant="info-value" [content]="avgTemp.toString() + '°'" />
<typography variant="info-subtitle" content="Avg. Temp" />
</vstack>

<!--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]="maxTemp.toString() + '°'" />
</hstack>
<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: 80%; padding-bottom: 35px" [resetGraph]="resetGraph"></cell-temp-graph>
<cell-temp-graph style="width: 85%; padding-bottom: 30px" [resetGraph]="resetGraph"></cell-temp-graph>
</hstack>
</info-background>
Original file line number Diff line number Diff line change
@@ -1,8 +1,2 @@
<graph-component
[data]="cellTempData"
graphContainerId="cellTempGraph"
icon="speed"
title="Voltage Over Time"
color="#ffffff"
>
<graph-component [data]="cellTempData" graphContainerId="cellTempGraph" icon="speed" title="Cell Temp" color="#ffffff">
</graph-component>
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default class FaultDisplay {
faultsShifted: boolean = false;
resetButton = {
onClick: () => {
this.faults.shift();
this.faults = [];
},
icon: 'restart_alt'
};
Expand Down
2 changes: 1 addition & 1 deletion scylla-server/src/socket/mock-proxy-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ export default class MockProxyClient implements ProxyClient {
return new Promise((resolve) =>
setTimeout(() => {
resolve('loop');
}, 10)
}, 1)
);
};

Expand Down

0 comments on commit a5418e7

Please sign in to comment.